CVE-2022-31117

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-31117
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31117.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31117
Aliases
Related
Published
2022-07-05T18:15:08Z
Modified
2025-01-15T02:21:55.274041Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/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+. 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.

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
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