{"api_version":"1","generated_at":"2026-06-24T09:05:02+00:00","cve":"CVE-2022-31117","urls":{"html":"https://cve.report/CVE-2022-31117","api":"https://cve.report/api/cve/CVE-2022-31117.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31117","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31117"},"summary":{"title":"CVE-2022-31117","description":"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.","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-415"],"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://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff","name":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff","refsource":"CONFIRM","tags":[],"title":"Potential double free of buffer during string decoding · Advisory · ultrajson/ultrajson · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b","name":"https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-fm67-cv37-96ff · ultrajson/ultrajson@9c20de0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"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://www.cve.org/CVERecord?id=CVE-2022-31117","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31117","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31117","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":"31117","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":"31117","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-31117","qid":"183080","title":"Debian Security Update for ujson (CVE-2022-31117)"},{"cve":"CVE-2022-31117","qid":"200109","title":"Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-1)"},{"cve":"CVE-2022-31117","qid":"200110","title":"Ubuntu Security Notification for UltraJSON Vulnerability (USN-6629-2)"},{"cve":"CVE-2022-31117","qid":"200117","title":"Ubuntu Security Notification for UltraJSON Vulnerabilities (USN-6629-3)"},{"cve":"CVE-2022-31117","qid":"240971","title":"Red Hat Update for OpenStack Platform 16.2.4 (RHSA-2022:8850)"},{"cve":"CVE-2022-31117","qid":"240977","title":"Red Hat Update for OpenStack Platform 16.1.9 (RHSA-2022:8864)"},{"cve":"CVE-2022-31117","qid":"282967","title":"Fedora Security Update for python (FEDORA-2022-1b2b8d5177)"},{"cve":"CVE-2022-31117","qid":"283003","title":"Fedora Security Update for python (FEDORA-2022-33e816bc37)"},{"cve":"CVE-2022-31117","qid":"502411","title":"Alpine Linux Security Update for py3-ujson"},{"cve":"CVE-2022-31117","qid":"710882","title":"Gentoo Linux UltraJSON Multiple Vulnerabilities (GLSA 202403-03)"},{"cve":"CVE-2022-31117","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-31117","STATE":"PUBLIC","TITLE":"Double free of buffer during string decoding 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+. 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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-415: Double Free"}]}]},"references":{"reference_data":[{"name":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff","refsource":"CONFIRM","url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff"},{"name":"https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b","refsource":"MISC","url":"https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b"},{"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-fm67-cv37-96ff","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-07-05 18:15:00","lastModifiedDate":"2023-11-07 03:47:00","problem_types":["CWE-415"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"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":[]}}}