{"id":"USN-6629-1","summary":"ujson vulnerabilities","details":"It was discovered that UltraJSON incorrectly handled certain input with\na large amount of indentation. An attacker could possibly use this issue\nto crash the program, resulting in a denial of service. (CVE-2021-45958)\n\nJake Miller discovered that UltraJSON incorrectly decoded certain\ncharacters. An attacker could possibly use this issue to cause key\nconfusion and overwrite values in dictionaries. (CVE-2022-31116)\n\nIt was discovered that UltraJSON incorrectly handled an error when\nreallocating a buffer for string decoding. An attacker could possibly\nuse this issue to corrupt memory. (CVE-2022-31117)\n","modified":"2026-04-27T17:05:01.625891Z","published":"2024-02-14T01:41:18Z","related":["UBUNTU-CVE-2021-45958","UBUNTU-CVE-2022-31116","UBUNTU-CVE-2022-31117"],"upstream":["CVE-2021-45958","CVE-2022-31116","CVE-2022-31117","UBUNTU-CVE-2021-45958","UBUNTU-CVE-2022-31116","UBUNTU-CVE-2022-31117"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6629-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-45958"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31116"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31117"}],"affected":[{"package":{"name":"ujson","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ujson@1.33-1ubuntu0.1~esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.33-1ubuntu0.1~esm2"}]}],"versions":["1.33-1","1.33-1build1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-ujson","binary_version":"1.33-1ubuntu0.1~esm2"},{"binary_name":"python3-ujson","binary_version":"1.33-1ubuntu0.1~esm2"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:16.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2021-45958"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-31116"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-31117"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6629-1.json"}},{"package":{"name":"ujson","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ujson@1.35-2ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.35-2ubuntu0.1~esm1"}]}],"versions":["1.35-1build2","1.35-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-ujson","binary_version":"1.35-2ubuntu0.1~esm1"},{"binary_name":"python3-ujson","binary_version":"1.35-2ubuntu0.1~esm1"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2021-45958"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-31116"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-31117"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6629-1.json"}},{"package":{"name":"ujson","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/ujson@5.1.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.0-1ubuntu0.1~esm1"}]}],"versions":["4.0.2-1","4.0.2-1build1","4.2.0-1","5.1.0-1","5.1.0-1build1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python3-ujson","binary_version":"5.1.0-1ubuntu0.1~esm1"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:22.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2021-45958"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-31116"},{"severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-31117"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6629-1.json"}}],"schema_version":"1.7.5"}