CVE-2021-45958

NameCVE-2021-45958
DescriptionUltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation can, for example, use a large amount of indentation.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-2929-1
Debian Bugs1005140

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ujson (PTS)stretch1.35-1vulnerable
stretch (security)1.35-1+deb9u1fixed
buster1.35-3vulnerable
bullseye4.0.2-1vulnerable
bookworm, sid5.3.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ujsonsourcestretch1.35-1+deb9u1DLA-2929-1
ujsonsource(unstable)5.2.0-11005140

Notes

[bullseye] - ujson <no-dsa> (Minor issue)
[buster] - ujson <no-dsa> (Minor issue)
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009
https://github.com/ultrajson/ultrajson/issues/501
https://github.com/ultrajson/ultrajson/issues/502
https://github.com/ultrajson/ultrajson/pull/504
Fixed by: https://github.com/ultrajson/ultrajson/pull/519

Search for package or bug name: Reporting problems