All reports
Medium

msgpack5: Quadratic parsing in the streaming decoder

Affected versions

Affected versions
< 6.1.0
Fixed version
6.1.0

Exploitation

CVE-2026-107297

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-22

Description

Impact

The streaming decoder reparses an incomplete container from the beginning whenever another chunk arrives. A remote peer can split one valid MessagePack value across many small chunks, causing quadratic CPU usage and blocking the event loop.

Patches

The decoder now preserves incremental container state so completed elements are not parsed again when more input arrives.

Workarounds

Buffer each complete MessagePack value before decoding it, or limit the number of chunks accepted for a single value.

Links

Credits

  • SWIFI-AI