CVE-2021-45958

Description

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
MEDIUM
CVSS v3
5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H · source nvd
Exploit chance (EPSS)
1.667%
chance of exploitation in the next 30 days
higher than 77.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 3
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-12-31Published by the CNA23:52 UTC
  2. 2022-01-21GitHub advisory published (GHSA-fh56-85cw-5pq6)21 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-fh56-85cw-5pq6, affected packages:

PackageVulnerable versionsFixed in
PyPI ujsonfrom 1.34 before 5.2.05.2.0

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
ultrajson_project ultrajsonbefore 5.2.0fixed in 5.2.05.2.0
debian debian_linux9.0no fix listednot listed
fedoraproject fedora35no fix listed36no fix listed37no fix listednot listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources