Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-104874 EUVD-2026-91800GHSA-54p9-h82j-f925PYSEC-2026-4244

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

Published Oct 2, 2026 · Updated Oct 5, 2026 · 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.

Affected products

VendorProductAffectedFixed
aio-libs multidict >= 6.7.0, < 6.9.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-multidict No fix yet —
Ubuntu 26.04 LTS python-multidict No fix yet —
Ubuntu 20.04 LTS python-multidict No fix yet —
Ubuntu 18.04 LTS python-multidict No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-multidict 7.0.0-1.1 openSUSE-SU-2026:12117-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 python39-oci-sdk +1 2.187.0-1.0.5.el9 ELSA-2026-604898

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-cassandra-medusa 0.30.1-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI multidict >= 6.7.0, < 6.9.1 6.9.1 GHSA-54p9-h82j-f925

Advisories 2

References