cve.bz

CVE-2021-45958

5.5 mediumEPSS 1.7%

Medium (5.5). EPSS 1.7% chance of exploitation in the next 30 days. Fixed in ujson 5.1.0, 5.2.0.

UltraJSON (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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.7% chance of exploitation in the next 30 days; higher than 76% of CVEs (scores of 2026-10-31)
CWE
CWE-787
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fh56-85cw-5pq6PyPIujson>=1.34 <5.2.05.2.0
PYSEC-2022-25PyPIujson>=4.0.2 <5.1.05.1.0

References

Check your stackJSON