CVE-2022-31117: UltraJSON - Use After Free
- Cve: CVE-2022-31117
- Name: UltraJSON - Use After Free
- 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.
- Impact: Potential memory corruption which could lead to crashes or arbitrary code execution in the underlying system.
- Remediation: Upgrade to UltraJSON 5.4.0 or later.
- Vulnerability type: use_after_free
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.01876
- Epss percentile: 0.79827
- Assignee: [email protected]
- Published at: 2022-07-05T18:15:08Z
- Age in days: 1603
- Modified at: 2026-06-17T04:44:50Z
- Patch available: yes
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31117
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-415 | Double Free |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ultrajson_project:ultrajson | < 5.4.0 | no | nvd | /v1/products/ultrajson_project/ultrajson |
| fedoraproject:fedora | = 36, = 35 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ultrajson/ultrajson | commit, package, security_advisory | yes | /v1/repositories/ultrajson/ultrajson |
Index
- Repositories: 94
- Repositories high signal: 49
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports