CVE-2022-31116
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ujsonPyPI | < 5.4.0 | 5.4.0 |
Affected products
12cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
- ghsa-coords8 versionspkg:pypi/ujsonpkg:rpm/opensuse/python-ujson&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/python-ujson&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/python-ujson&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4
< 5.4.0+ 7 more
- (no CPE)range: < 5.4.0
- (no CPE)range: < 1.35-150100.3.5.1
- (no CPE)range: < 1.35-150100.3.5.1
- (no CPE)range: < 5.10.0-1.5
- (no CPE)range: < 1.35-150100.3.5.1
- (no CPE)range: < 1.35-150100.3.5.1
- (no CPE)range: < 1.35-150100.3.5.1
- (no CPE)range: < 1.35-150100.3.5.1
Patches
Vulnerability mechanics
References
8- github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687nvdPatchThird Party AdvisoryWEB
- github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745rnvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-wpqr-jcpx-745rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-31116ghsaADVISORY
- lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/nvd
News mentions
0No linked articles in our index yet.