Intel

AIKIDO-2026-338732

multidict is vulnerable to Memory Leak

CVE-2026-104874Published Sep 23, 2026
September 23, 2026

53

CVE Score

Medium

Memory Leak

Are you affected? Scan for Free

TL;DR

The multidict C extension items-view union and subtraction operators parse each operand pair into new strong references for the key identity and value, then release only the tuple wrapper. Evaluating operand | d.items() or d.items() - operand therefore leaks one identity object and one value object per element, and garbage collection cannot reclaim them. A remote client that enlarges that operand, for example by sending many HTTP header items compared against a fixed allow or deny set, can force unreclaimable heap growth until the process is killed. The fix clears the identity and value references at the end of each parse-loop iteration, matching the other set-algebra paths.

How do I fix this?

Upgrade the multidict library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application evaluates operand | view.items() or view.items() - operand on the C extension.

Package

Versions

6.7.0 - 6.9.0

Fixed in 6.9.1

Background info

multidict is vulnerable to Memory Leak in versions 6.7.0 - 6.9.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea