CVE-2026-114613: MessagePack: Unbounded memory leak in msgpack C extension on strict_map_key validation failure

Published Oct 22, 2026
·
Updated

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 strictmapkey=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 Software

1 affected component
pypi/msgpack<1.2.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade msgpack-python to a version that resolves this vulnerability.

    Fixed in 1.2.3

Event History

Oct 22, 2026
CVE Published
via MITRE·06:22 PM
Data Sourced
via MITRE·06:22 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service condition?

Applications using msgpack-python versions before 1.2.3 with the msgpack._cmsgpack C extension are affected when they deserialize attacker-controlled MessagePack input. The pure-Python fallback did not exhibit the leak in the reported tests.

2

Does an application need to enable a non-default option to be affected?

No. The leak is triggered when strict_map_key=True rejects a decoded map key, and strict_map_key=True is the default.

3

Which MessagePack interfaces can trigger the leak?

Both unpackb() and the streaming Unpacker API are affected. Repeated malformed inputs can cause unbounded process memory growth.

4

What can be done if upgrading immediately is not possible?

Avoid deserializing attacker-controlled MessagePack data with the affected C extension, or use the pure-Python fallback, which did not exhibit this leak in the reported tests. Upgrade to msgpack-python 1.2.3 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203