CVE-2022-31116: fedoraproject fedora
Vulnerability summary
CVE-2022-31116 is a high (CVSS 7.5) vulnerability in fedoraproject fedora. EPSS estimates a 2.54% chance of exploitation in the next 30 days, higher than 84.7% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 7 · Related 4Timeline
- 05-07-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
Description
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 value overwriting in dictionaries. All users parsing JSON from untrusted sources are vulnerable. From version 5.4.0, UltraJSON decodes lone surrogates in the same way as the standard library's `json` module does, preserving them in the parsed output. Users are advised to upgrade. There are no known workarounds for this issue.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.54%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
+0.07 pp
From 2.47% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundUltrajson
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Ubuntu3 products
- collada2gltfAll versions (No fix recorded)
- pandasAll versions (No fix recorded)
- ujson< 1.33-1ubuntu0.1~esm2 | < 1.35-2ubuntu0.1~esm1 | < 5.1.0-1ubuntu0.1~esm1
Debian1 product
- ujson< 5.4.0-1
Fedoraproject1 product
- fedoraEOL35 | 36
PyPI1 product
- ujson< 5.4.0
Ultrajson1 product
- ultrajson< 5.4.0
Ultrajson_project1 product
- ultrajson< 5.4.0
6 vendors · 8 products
References
15 links- github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745rX Refsource CONFIRMWEBREPORTExploitThird Party Advisory
- github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687X Refsource MISCWEBREPORTPatchThird Party Advisory
- pypi.org/project/ujsonPACKAGE