{"schemaVersion":3,"id":"CVE-2022-31116","aliases":["GHSA-wpqr-jcpx-745r","PYSEC-2026-1057","UBUNTU-CVE-2022-31116","DEBIAN-CVE-2022-31116"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-07-05T17:35:11.000Z","modified":"2025-04-22T17:52:13.305Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02545,"percentile":0.84794,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.07200000000000019,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02473},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02545,"percentile":0.84794}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02473,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02616,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02545,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02545,"percentile":0.84794}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ULTRAJSON_ULTRAJSON","name":"Ultrajson","source":"github","url":"https://github.com/ultrajson/ultrajson/issues/501","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation","description":"The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/670.html"}],"affected":[{"vendor":"debian","product":"ujson","name":"ujson","label":"ujson","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ujson","purlType":"deb","versions":[{"text":"< 5.4.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"collada2gltf","name":"collada2gltf","label":"collada2gltf","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/collada2gltf","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pandas","name":"pandas","label":"pandas","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pandas","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ujson","name":"ujson","label":"ujson","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ujson","purlType":"deb","versions":[{"text":"< 1.33-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.35-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.33-1ubuntu0.1~esm2 | < 1.35-2ubuntu0.1~esm1 | < 5.1.0-1ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null}],"versionsText":"35 | 36","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"PyPI","product":"ujson","name":"ujson","label":"ujson","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/ujson","purlType":"pypi","versions":[{"text":"< 5.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.0","eol":null,"hubHref":null},{"vendor":"ultrajson_project","product":"ultrajson","name":"ultrajson","label":"ultrajson","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.0","eol":null,"hubHref":"/vendor/ultrajson_project/ultrajson"},{"vendor":"ultrajson","product":"ultrajson","name":"ultrajson","label":"ultrajson","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.0","eol":null,"hubHref":"/vendor/ultrajson/ultrajson"}],"affectedCount":8,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745r","label":"github.com/ultrajson/ultrajson/security/advisories/GHSA-wpqr-jcpx-745r","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687","label":"github.com/ultrajson/ultrajson/commit/67ec07183342589d602e0fcf7bb1ff3e19272687","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31116","label":"nvd.nist.gov/vuln/detail/CVE-2022-31116","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ultrajson/ultrajson","label":"github.com/ultrajson/ultrajson","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://pypi.org/project/ujson","label":"pypi.org/project/ujson","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-wpqr-jcpx-745r","label":"github.com/advisories/GHSA-wpqr-jcpx-745r","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-31116","label":"ubuntu.com/security/CVE-2022-31116","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6629-1","label":"ubuntu.com/security/notices/USN-6629-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6629-3","label":"ubuntu.com/security/notices/USN-6629-3","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31116","label":"www.cve.org/CVERecord?id=CVE-2022-31116","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31116","label":"security-tracker.debian.org/tracker/CVE-2022-31116","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2022-0270","OPENSUSE-SU-2025:15107-1","RHSA-2022:8850","RHSA-2022:8864","SUSE-SU-2022:2673-1","USN-6629-1","USN-6629-3"],"duplicates":[],"related":["OPENSUSE-SU-2025:15107-1","SUSE-SU-2022:2673-1","USN-6629-1","USN-6629-3"]},"timeline":[{"kind":"published","date":"2022-07-05T17:35:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T17:52:13.305Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:50:55.549Z","stale":false,"partial":false}}