# CVE-2026-104874: Multidict: Reference leak in CIMultiDict/MultiDict items-view union and subtraction

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-02T20:21:50.903Z
- Modified: 2026-10-15T14:56:05.601Z
- Also known as: GHSA-54p9-h82j-f925, PYSEC-2026-4244
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Multidict is an implementation of a multidict data structure. From 6.7.0 until 6.9.1, the C extension's items-view reflected union operation, operand | d.items(), in multidict_itemsview_or2_impl and subtraction operation, d.items() - operand, in multidict_itemsview_sub1_impl fail to release new key-identity and value references returned for each operand element. Applications that perform these operations over attacker-influenced sequences can leak two strong references per element, and garbage collection cannot reclaim them, so repeated operations can cause unbounded process memory growth and denial of service. Forward union, intersection, non-tuple operand elements, and pure-Python builds are not affected by this reference leak. This issue is fixed in version 6.9.1.

(As written by CVE List.)

## Affected

- aio-libs multidict: >= 6.7.0, < 6.9.1
- multidict (PyPI): from 6.7.0 before 6.9.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/aio-libs/multidict/security/advisories/GHSA-54p9-h82j-f925> (exploit, web)
- <https://github.com/aio-libs/multidict/commit/350b4a07bf8ff851b6d7544e81b1c748bdc74c40> (web)
- <https://github.com/aio-libs/multidict/releases/tag/v6.9.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-104874> (advisory)
- <https://github.com/aio-libs/multidict> (package)
- <https://pypi.org/project/multidict> (package)
- <https://github.com/advisories/GHSA-54p9-h82j-f925> (advisory)

## Sources

- CVE List: [CVE-2026-104874](https://www.cve.org/CVERecord?id=CVE-2026-104874), CVE Terms of Use, modified 2026-10-05
- GitHub Advisory Database: [GHSA-54p9-h82j-f925](https://github.com/advisories/GHSA-54p9-h82j-f925), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-104874](https://nvd.nist.gov/vuln/detail/CVE-2026-104874), Public domain, modified 2026-10-06
- PyPA Advisory Database: [PYSEC-2026-4244](https://osv.dev/vulnerability/PYSEC-2026-4244), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-104874 · Whole record: https://cve.day/CVE-2026-104874.json · Rebuilt by cve.day 2026-11-25T22:59:42.006Z
