Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. multidict
  4. ›
  5. CVE-2026-104874

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

October 5, 2026

A reference leak in the items-view union and subtraction operators of aio-libs/multidict 6.7.0 through 6.9.0 (C extension) lets a remote client drive unbounded, unreclaimable memory growth by having each operand element leak one key-identity object and one value object. The reflected-union path (operand | d.items(), multidict_itemsview_or2_impl) and the subtraction path (d.items() - operand, multidict_itemsview_sub1_impl) parse each element into new strong references but release only the tuple wrapper, never the identity and value. Servers in the aio-libs stack build these views over attacker-supplied HTTP headers and query strings, so the operand size is under remote control. Forced garbage collection does not recover the leaked objects, so resident memory rises monotonically until the process is killed.


References

  • github.com/advisories/GHSA-54p9-h82j-f925
  • github.com/aio-libs/multidict/commit/350b4a07bf8ff851b6d7544e81b1c748bdc74c40
  • github.com/aio-libs/multidict/releases/tag/v6.9.1
  • github.com/aio-libs/multidict/security/advisories/GHSA-54p9-h82j-f925
  • nvd.nist.gov/vuln/detail/CVE-2026-104874

Code Behaviors & Features

Detect and mitigate CVE-2026-104874 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 6.7.0 before 6.9.1

Fixed versions

  • 6.9.1

Solution

Upgrade to version 6.9.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime

Source file

pypi/multidict/CVE-2026-104874.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:45 +0000.