Double Free in Ultrajson
CVE-2022-31117
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 resolved in version 5.4.0 and all users should upgrade to UltraJSON 5.4.0. There are no known workarounds for this issue.
Vulnerability class: Double Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.019, 79.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Ultrajson — versions < 5.4.0
- Ultrajson Project
- Fedoraproject Fedora — versions 35, 36
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff (Third Party Advisory)
- github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b (Patch, Third Party Advisory)
- FEDORA-2022-1b2b8d5177 (vendor-advisory)
- FEDORA-2022-33e816bc37 (vendor-advisory)