Vulnerability Name:

CVE-2022-31117 (CCN-230460)

Assigned:2022-07-02
Published:2022-07-02
Updated:2022-11-05
Summary: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.
CVSS v3 Severity:5.9 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H)
5.2 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.9 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H)
5.2 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
5.4 Medium (CCN CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:N/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Complete
Vulnerability Type:CWE-415
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2022-31117

Source: XF
Type: UNKNOWN
ultrajson-cve202231117-dos(230460)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b

Source: CCN
Type: UltraJSON GIT Repository
Potential double free of buffer during string decoding

Source: CONFIRM
Type: Third Party Advisory
https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-33e816bc37

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-1b2b8d5177

Source: CCN
Type: Mend Vulnerability Database
CVE-2022-31117

Vulnerable Configuration:Configuration 1:
  • cpe:/a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* (Version < 5.4.0)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:36:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:3713
    P
    Security update for python-ujson (Moderate)
    2022-08-04
    oval:org.opensuse.security:def:678
    P
    Security update for python-ujson (Moderate)
    2022-08-04
    oval:org.opensuse.security:def:3748
    P
    Security update for python-ujson (Moderate)
    2022-08-04
    oval:org.opensuse.security:def:95343
    P
    Security update for python-ujson (Moderate)
    2022-08-04
    oval:org.opensuse.security:def:95378
    P
    Security update for python-ujson (Moderate)
    2022-08-04
    BACK
    ultrajson_project ultrajson *
    fedoraproject fedora 35
    fedoraproject fedora 36