Ultrajson Project Ultrajson vulnerabilities

5 known vulnerabilities affecting ultrajson_project/ultrajson.

Total CVEs
5
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
HIGH3MEDIUM2

Vulnerabilities

Page 1 of 1
CVE-2026-32874HIGHCVSS 7.5≥ 5.4.0, < 5.12.02026-03-20
CVE-2026-32874 [HIGH] CWE-401 CVE-2026-32874: UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versio UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versions 5.4.0 through 5.11.0 contain an accumulating memory leak in JSON parsing large (outside of the range [-2^63, 2^64 - 1]) integers. The leaked memory is a copy of the string form of the integer plus an additional NULL byte. The leak occurs irrespective
nvd
CVE-2026-32875HIGHCVSS 7.5≥ 5.1.0, < 5.12.02026-03-20
CVE-2026-32875 [HIGH] CWE-190 CVE-2026-32875: UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versio UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versions 5.10 through 5.11.0 are vulnerable to buffer overflow or infinite loop through large indent handling. ujson.dumps() crashes the Python interpreter (segmentation fault) when the product of the indent parameter and the nested depth of the input exceeds
nvd
CVE-2022-31116HIGHCVSS 7.5fixed in 5.4.02022-07-05
CVE-2022-31116 [HIGH] CWE-670 CVE-2022-31116: UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Affect UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Affected versions were found to improperly decode certain characters. JSON strings that contain escaped surrogate characters not part of a proper surrogate pair were decoded incorrectly. Besides corrupting strings, this allowed for potential key confusion and
nvd
CVE-2022-31117MEDIUMCVSS 5.9fixed in 5.4.02022-07-05
CVE-2022-31117 [MEDIUM] CWE-415 CVE-2022-31117: UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. In ver UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. In versions prior to 5.4.0 an error occurring while reallocating a buffer for string decoding can cause the buffer to get freed twice. Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python. This issue has been
nvd
CVE-2021-45958MEDIUMCVSS 5.5fixed in 5.2.02022-01-01
CVE-2021-45958 [MEDIUM] CWE-787 CVE-2021-45958: UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecke 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.
nvd