CVE-2022-31116

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-31116
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31116.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-31116
Aliases
Related
Published
2022-07-05T18:15:08Z
Modified
2024-10-12T09:35:29.515627Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / ujson

Package

Name
ujson
Purl
pkg:deb/debian/ujson?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.0.2-1
4.2.0-1

5.*

5.1.0-1
5.2.0-1
5.3.0-1
5.4.0-1
5.5.0-1
5.5.0-2
5.6.0-1
5.7.0-1
5.8.0-1
5.9.0-1
5.10.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / ujson

Package

Name
ujson
Purl
pkg:deb/debian/ujson?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / ujson

Package

Name
ujson
Purl
pkg:deb/debian/ujson?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/ultrajson/ultrajson

Affected ranges

Type
GIT
Repo
https://github.com/ultrajson/ultrajson
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

2.*

2.0.0
2.0.1
2.0.2
2.0.3

3.*

3.0.0
3.1.0
3.2.0

4.*

4.0.0
4.0.1
4.0.2
4.1.0
4.2.0
4.3.0

5.*

5.0.0
5.1.0
5.2.0
5.3.0

v1.*

v1.34
v1.35