CVE-2022-31116

Summary

CVECVE-2022-31116
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-07-05 18:15:00 UTC
Updated2023-11-07 03:47:00 UTC
DescriptionUltraJSON 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.

Risk And Classification

Problem Types: CWE-670

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 35 All All All
Operating System Fedoraproject Fedora 36 All All All
Application Ultrajson Project Ultrajson All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 36 Update: python-ujson-5.4.0-1.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: python-ujson-5.4.0-1.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 36 Update: python-ujson-5.4.0-1.fc36 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 35 Update: python-ujson-5.4.0-1.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Incorrect handling of invalid surrogate pair characters · Advisory · ultrajson/ultrajson · GitHub CONFIRM github.com
Merge pull request #555 from JustAnotherArchivist/fix-decode-surrogat… · ultrajson/ultrajson@67ec071 · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 183444 Debian Security Update for ujson (CVE-2022-31116)
  • 200109 Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-1)
  • 200110 Ubuntu Security Notification for UltraJSON Vulnerability (USN-6629-2)
  • 200117 Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-3)
  • 240971 Red Hat Update for OpenStack Platform 16.2.4 (RHSA-2022:8850)
  • 240977 Red Hat Update for OpenStack Platform 16.1.9 (RHSA-2022:8864)
  • 282967 Fedora Security Update for python (FEDORA-2022-1b2b8d5177)
  • 283003 Fedora Security Update for python (FEDORA-2022-33e816bc37)
  • 502411 Alpine Linux Security Update for py3-ujson
  • 710882 Gentoo Linux UltraJSON Multiple Vulnerabilities (GLSA 202403-03)
  • 753304 SUSE Enterprise Linux Security Update for python-ujson (SUSE-SU-2022:2673-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report