Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ultrajson Project | Ultrajson | < 5.4.0 |
| Fedoraproject | Fedora | 35 |
Related Weaknesses (CWE)
References
- https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb486711PatchThird Party Advisory
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ffThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb486711PatchThird Party Advisory
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ffThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2022-31117?
CVE-2022-31117 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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 th...
How severe is CVE-2022-31117?
CVE-2022-31117 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-31117?
Check the references section above for vendor advisories and patch information. Affected products include: Ultrajson Project Ultrajson, Fedoraproject Fedora.