CVE-2022-31116
Summary
| CVE | CVE-2022-31116 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-07-05 18:15:00 UTC |
| Updated | 2023-11-07 03:47:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| [SECURITY] Fedora 36 Update: python-ujson-5.4.0-1.fc36 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| [SECURITY] Fedora 35 Update: python-ujson-5.4.0-1.fc35 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| [SECURITY] Fedora 36 Update: python-ujson-5.4.0-1.fc36 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| [SECURITY] Fedora 35 Update: python-ujson-5.4.0-1.fc35 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| Incorrect handling of invalid surrogate pair characters · Advisory · ultrajson/ultrajson · GitHub |
CONFIRM |
github.com |
|
| Merge pull request #555 from JustAnotherArchivist/fix-decode-surrogat… · ultrajson/ultrajson@67ec071 · GitHub |
MISC |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 183444 Debian Security Update for ujson (CVE-2022-31116)
- 200109 Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-1)
- 200110 Ubuntu Security Notification for UltraJSON Vulnerability (USN-6629-2)
- 200117 Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-3)
- 240971 Red Hat Update for OpenStack Platform 16.2.4 (RHSA-2022:8850)
- 240977 Red Hat Update for OpenStack Platform 16.1.9 (RHSA-2022:8864)
- 282967 Fedora Security Update for python (FEDORA-2022-1b2b8d5177)
- 283003 Fedora Security Update for python (FEDORA-2022-33e816bc37)
- 502411 Alpine Linux Security Update for py3-ujson
- 710882 Gentoo Linux UltraJSON Multiple Vulnerabilities (GLSA 202403-03)
- 753304 SUSE Enterprise Linux Security Update for python-ujson (SUSE-SU-2022:2673-1)