
CVE catalog
CVE-2022-31117
ujson: CVE-2022-31117
- Severity
- Medium · CVSS 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.88% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ujson | sid | 5.13.0-1 | fixed |
| Debian | ujson | forky | 5.13.0-1 | fixed |
| Debian | ujson | trixie | 5.10.0-1 | fixed |
| Debian | ujson | bookworm | 5.7.0-1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ujson | source | sid | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ujson | source | forky | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ujson | source | trixie | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ujson | source | bookworm | 5.4.0-1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-ujson]Fixed
Source package: [ujson]
Details (2)
5.7.0-1· amd64 · bookwormFixed · Fixed:
5.4.0-1dsa · ujson · debian · bookworm
5.7.0-1· arm64 · bookwormFixed · Fixed:
5.4.0-1dsa · ujson · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_2673-1.json]
- [https://security-tracker.debian.org/tracker/CVE-2022-31117]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-31117.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-2265.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]