Intel

AIKIDO-2026-338732

multidict is vulnerable to Memory Leak

Memory LeakGHSA-54p9-h82j-f925 Published Today

53

Medium Risk

This Affects:

PYTHONmultidict
6.7.0 - 6.9.0
Fixed in 6.9.1
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.

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.

Background info

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

How to fix this

Upgrade the multidict library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform