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 (78.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 79th percentile — 78.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-31117: held from 0.018 to 0.019.

EPSS over last 30 days · oldest: 0.018 · newest: 0.019 · change: +0.001

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-31117?
CVE-2022-31117 is a medium-severity vulnerability in Ultrajson, classified under Double Free. CVSS score: 5.9/10. Published 2022-07-05.
How severe is CVE-2022-31117?
Medium severity. CVSS v3 base score is 5.9 out of 10.
Is CVE-2022-31117 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.