Skip to content
Heist/ feed
Back to feed
Medium

python-multidict — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-104874

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.

Products
python-multidict
Affected versions
3.1.3-1build1, 3.2.0-1, 3.3.2-1, 4.1.0-1, 4.5.2-1, 4.6.1-1, 4.7.3-1, 4.7.3-1build1, 5.1.0-1, 5.1.0-1build1, 5.1.0-1build2, 6.0.4-1.1, 6.0.4-1.1build1, 6.0.4-1build1, 6.4.3-1, 6.4.3-1build1, 6.4.3-1build2, 6.4.3-2
Fixed versions
Not specified
CVEs
CVE-2026-104874
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:40 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-104874

core-osv · Original source

Published 2 Oct 2026, 21:16 UTC

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.

osv:UBUNTU-CVE-2026-104874

python-multidict

Fixed versions: Not specified

python-multidict

Fixed versions: Not specified

python-multidict

Fixed versions: Not specified

python-multidict

Fixed versions: Not specified

python-multidict

Fixed versions: Not specified

python-multidict

Fixed versions: Not specified

Complete source record
{
  "id": "807b171d83ee728ba81b23aefb2b4df45a05249a7bb7fd9f7462fc9fa2bce3ad",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-104874",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-104874",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-104874",
    "products": [
      {
        "name": {
          "value": "python-multidict",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.3-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.1.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multidict",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.5.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.6.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.7.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.7.3-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multidict",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.1.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.1.0-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.1.0-1build2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multidict",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.4-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.4-1.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.4-1.1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multidict",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.3-1build2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.4.3-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multidict",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.3-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.4.3-1build1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.4.3-1build2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-104874",
      "aliases": [
        "UBUNTU-CVE-2026-104874"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multidict",
            "purl": "pkg:deb/ubuntu/python-multidict?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.1.3-1build1",
            "3.2.0-1",
            "3.3.2-1",
            "4.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104874.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multidict",
                "binary_version": "4.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multidict",
            "purl": "pkg:deb/ubuntu/python-multidict?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.5.2-1",
            "4.6.1-1",
            "4.7.3-1",
            "4.7.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104874.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multidict",
                "binary_version": "4.7.3-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multidict",
            "purl": "pkg:deb/ubuntu/python-multidict?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "5.1.0-1",
            "5.1.0-1build1",
            "5.1.0-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104874.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multidict",
                "binary_version": "5.1.0-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multidict",
            "purl": "pkg:deb/ubuntu/python-multidict?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "6.0.4-1build1",
            "6.0.4-1.1",
            "6.0.4-1.1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104874.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multidict",
                "binary_version": "6.0.4-1.1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multidict",
            "purl": "pkg:deb/ubuntu/python-multidict?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.4.3-1build2",
            "6.4.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104874.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multidict",
                "binary_version": "6.4.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multidict",
            "purl": "pkg:deb/ubuntu/python-multidict?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.4.3-1",
            "6.4.3-1build1",
            "6.4.3-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104874.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multidict",
                "binary_version": "6.4.3-1build2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:43.827715861Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-104874"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-104874",
        "https://www.cve.org/CVERecord?id=CVE-2026-104874",
        "https://github.com/aio-libs/multidict/security/advisories/GHSA-54p9-h82j-f925",
        "https://github.com/aio-libs/multidict/commit/350b4a07bf8ff851b6d7544e81b1c748bdc74c40",
        "https://github.com/aio-libs/multidict/releases/tag/v6.9.1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-104874",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358987,
  "published_at": "2026-10-02T21:16:00+00:00"
}