Msgpack msgpack-python
MessagePack: Unbounded memory leak in msgpack C extension on strict_map_key validation failure
MessagePack is the serializer implementation for Python msgpack.org. Prior to 1.2.3, the msgpack-python C extension (msgpack._cmsgpack) leaks a decoded map value when deserialization rejects a key with strict_map_key=True (the default). Repeated malformed inputs can cause unbounded process memory growth and denial of service in applications that deserialize attacker-controlled MessagePack data. Both unpackb() and the streaming Unpacker API are affected. The pure-Python fallback does not exhibit this leak in the reported tests. This issue is fixed in version 1.2.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.2.3
Fixed in 1.2.3
Mitigation
Upgrade msgpack-python to 1.2.3 or later.
References
- Vendor advisory github.com/msgpack/msgpack-python/security/adv…
- Patch github.com/msgpack/msgpack-python/commit/620b0…
- Release notes github.com/msgpack/msgpack-python/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.