CVE Vulnerabilities

CVE-2022-31117

Double Free

Published: Jul 05, 2022 | Modified: Nov 07, 2023
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

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.

Weakness

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.

Affected Software

Name Vendor Start Version End Version
Ultrajson Ultrajson_project * 5.4.0 (excluding)
Red Hat OpenStack Platform 16.1 RedHat python-ujson-0:2.0.3-3.el8ost *
Red Hat OpenStack Platform 16.2 RedHat python-ujson-0:2.0.3-3.el8ost *
Collada2gltf Ubuntu bionic *
Collada2gltf Ubuntu impish *
Collada2gltf Ubuntu kinetic *
Collada2gltf Ubuntu lunar *
Collada2gltf Ubuntu xenial *
Pandas Ubuntu bionic *
Pandas Ubuntu impish *
Pandas Ubuntu kinetic *
Pandas Ubuntu lunar *
Pandas Ubuntu mantic *
Pandas Ubuntu trusty *
Pandas Ubuntu upstream *
Pandas Ubuntu xenial *
Ujson Ubuntu bionic *
Ujson Ubuntu esm-apps/bionic *
Ujson Ubuntu esm-apps/focal *
Ujson Ubuntu esm-apps/jammy *
Ujson Ubuntu esm-apps/xenial *
Ujson Ubuntu focal *
Ujson Ubuntu impish *
Ujson Ubuntu jammy *
Ujson Ubuntu kinetic *
Ujson Ubuntu upstream *
Ujson Ubuntu xenial *

Potential Mitigations

References