CVE-2022-31117
published medium CVSS 3.1 · 5.9Double free of buffer during string decoding in ujson
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ultrajson | — | ultrajson< 5.4.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP3 | python2-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| Ubuntu | bionic | python-ujson | Advisory build | 1.35-2ubuntu0.1~esm1 | USN-6629-1 |
| Alpine Linux | v3.16 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
Show 65 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-ujson | Fixed | 5.4.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP3 | python2-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP3 | python2-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP3 | python2-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python2-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python2-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python2-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python2-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-ujsonaarch64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-ujsonppc64le | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-ujsons390x | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-ujsonx86_64 | Advisory build | 1.35-150100.3.5.1 | SUSE-SU-2022:2673-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-ujsonaarch64 | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-ujsonppc64le | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-ujsons390x | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-ujsonx86_64 | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ujsonaarch64 | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ujsonppc64le | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ujsons390x | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-ujsonx86_64 | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ujsonaarch64 | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ujsonppc64le | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ujsons390x | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-ujsonx86_64 | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ujsonaarch64 | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ujsonppc64le | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ujsons390x | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-ujsonx86_64 | Advisory build | 5.10.0-1.5 | OPENSUSE-SU-2025:15107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-ujsonaarch64 | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-ujsonppc64le | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-ujsons390x | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-ujsonx86_64 | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-ujsonaarch64 | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-ujsonppc64le | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-ujsons390x | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-ujsonx86_64 | Advisory build | 5.4.0-1.1 | OPENSUSE-SU-2024:12183-1 |
| Ubuntu | bionic | python3-ujson | Advisory build | 1.35-2ubuntu0.1~esm1 | USN-6629-1 |
| Ubuntu | bionic | ujson | Advisory build | 1.35-2ubuntu0.1~esm1 | USN-6629-1 |
| Ubuntu | focal | python3-ujson | Advisory build | 1.35-4ubuntu0.1+esm1 | USN-6629-3 |
| Ubuntu | focal | ujson | Advisory build | 1.35-4ubuntu0.1+esm1 | USN-6629-3 |
| Ubuntu | jammy | python3-ujson | Advisory build | 5.1.0-1ubuntu0.1~esm1 | USN-6629-1 |
| Ubuntu | jammy | ujson | Advisory build | 5.1.0-1ubuntu0.1~esm1 | USN-6629-1 |
| Ubuntu | xenial | python-ujson | Advisory build | 1.33-1ubuntu0.1~esm2 | USN-6629-1 |
| Ubuntu | xenial | python3-ujson | Advisory build | 1.33-1ubuntu0.1~esm2 | USN-6629-1 |
| Ubuntu | xenial | ujson | Advisory build | 1.33-1ubuntu0.1~esm2 | USN-6629-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ultrajson | ultrajson | < 5.4.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-415 CWE-415: Double Free
References
4- https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff
- FEDORA-2022-33e816bc37 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/
- FEDORA-2022-1b2b8d5177 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/
Provider assertions
3GitHub_M · cna
Double free of buffer during string decoding in ujson
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 749b7aa156647746dd973e5253a5f94dcc1b537b427049bb63e0ab46de18bff6
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record