All reports
Medium

UltraJSON vulnerable to Out-of-bounds Write

Affected versions

Version ranges need review.

PyPIujson
Affected versions
>=4.0.2 <5.1.0
Fixed version
5.1.0
PyPIujson
Affected versions
>= 1.34, < 5.2.0
Fixed version
5.2.0

Exploitation

CVE-2021-45958

Probability of exploitation in the next 30 days: 1.67%

FIRST EPSS · 2026-11-21

Description

UltraJSON (aka ujson) 1.34 through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode).

Links

Credits

  • JustAnotherArchivist