{"api_version":"1","generated_at":"2026-06-24T09:05:27+00:00","cve":"CVE-2022-31116","urls":{"html":"https://cve.report/CVE-2022-31116","api":"https://cve.report/api/cve/CVE-2022-31116.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31116","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31116"},"summary":{"title":"CVE-2022-31116","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-07-05 18:15:00","updated_at":"2023-11-07 03:47:00"},"problem_types":["CWE-670"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/","name":"FEDORA-2022-1b2b8d5177","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: python-ujson-5.4.0-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/","name":"FEDORA-2022-33e816bc37","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: python-ujson-5.4.0-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/","name":"FEDORA-2022-1b2b8d5177","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: python-ujson-5.4.0-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/","name":"FEDORA-2022-33e816bc37","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: python-ujson-5.4.0-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745r","name":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745r","refsource":"CONFIRM","tags":[],"title":"Incorrect handling of invalid surrogate pair characters · Advisory · ultrajson/ultrajson · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687","name":"https://github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687","refsource":"MISC","tags":[],"title":"Merge pull request #555 from JustAnotherArchivist/fix-decode-surrogat… · ultrajson/ultrajson@67ec071 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31116","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31116","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31116","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31116","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31116","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ultrajson_project","cpe5":"ultrajson","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-31116","qid":"183444","title":"Debian Security Update for ujson (CVE-2022-31116)"},{"cve":"CVE-2022-31116","qid":"200109","title":"Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-1)"},{"cve":"CVE-2022-31116","qid":"200110","title":"Ubuntu Security Notification for UltraJSON Vulnerability (USN-6629-2)"},{"cve":"CVE-2022-31116","qid":"200117","title":"Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-3)"},{"cve":"CVE-2022-31116","qid":"240971","title":"Red Hat Update for OpenStack Platform 16.2.4 (RHSA-2022:8850)"},{"cve":"CVE-2022-31116","qid":"240977","title":"Red Hat Update for OpenStack Platform 16.1.9 (RHSA-2022:8864)"},{"cve":"CVE-2022-31116","qid":"282967","title":"Fedora Security Update for python (FEDORA-2022-1b2b8d5177)"},{"cve":"CVE-2022-31116","qid":"283003","title":"Fedora Security Update for python (FEDORA-2022-33e816bc37)"},{"cve":"CVE-2022-31116","qid":"502411","title":"Alpine Linux Security Update for py3-ujson"},{"cve":"CVE-2022-31116","qid":"710882","title":"Gentoo Linux UltraJSON Multiple Vulnerabilities (GLSA 202403-03)"},{"cve":"CVE-2022-31116","qid":"753304","title":"SUSE Enterprise Linux Security Update for python-ujson (SUSE-SU-2022:2673-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31116","STATE":"PUBLIC","TITLE":"Incorrect handling of invalid surrogate pair characters in ujson"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ultrajson","version":{"version_data":[{"version_value":"< 5.4.0"}]}}]},"vendor_name":"ultrajson"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-670: Always-Incorrect Control Flow Implementation"}]}]},"references":{"reference_data":[{"name":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745r","refsource":"CONFIRM","url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745r"},{"name":"https://github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687","refsource":"MISC","url":"https://github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687"},{"refsource":"FEDORA","name":"FEDORA-2022-1b2b8d5177","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/"},{"refsource":"FEDORA","name":"FEDORA-2022-33e816bc37","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/"}]},"source":{"advisory":"GHSA-wpqr-jcpx-745r","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-07-05 18:15:00","lastModifiedDate":"2023-11-07 03:47:00","problem_types":["CWE-670"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:*","versionEndExcluding":"5.4.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}