Lucene search

K
ubuntucveUbuntu.comUB:CVE-2022-31116
HistoryJul 05, 2022 - 12:00 a.m.

CVE-2022-31116

2022-07-0500:00:00
ubuntu.com
ubuntu.com
13

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

0.002 Low

EPSS

Percentile

51.4%

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.

Notes

Author Note
ccdm94 the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project (they have fully forked ujson), since pandas upstream is maintaining their own ujson bug fixes and changes without re-syncing with the ujson upstream project. There is no indication the ujson fork, as used in pandas, is vulnerable to the same issues as the upstream ujson code. according to https://github.com/ultrajson/ultrajson/releases/tag/5.4.0, the commits that fix this issue are e0e5db9a46 and bc7bdff051. However, release 5.4.0 does include a few other commits which seem to be related to the above.

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

0.002 Low

EPSS

Percentile

51.4%

Related for UB:CVE-2022-31116