{"id":"MGASA-2022-0270","summary":"Updated python-ujson packages fix security vulnerability","details":"Add support for arbitrary size integers.\nReplace 'wchar_t' string decoding implementation with a 'uint32_t'-based\none; fix handling of surrogates on decoding (CVE-2022-31116)\nPotential double free of buffer during string decoding - Fix memory leak\non encoding errors when the buffer was resized - Integer parsing: always\ndetect overflows - Fix handling of surrogates on encoding (CVE-2022-31117)\n","modified":"2026-04-16T00:09:26.888643915Z","published":"2022-07-29T20:53:30Z","upstream":["CVE-2022-31116","CVE-2022-31117"],"references":[{"type":"ADVISORY","url":"https://advisories.mageia.org/MGASA-2022-0270.html"},{"type":"REPORT","url":"https://bugs.mageia.org/show_bug.cgi?id=30663"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7/"}],"affected":[{"package":{"name":"python-ujson","ecosystem":"Mageia:8","purl":"pkg:rpm/mageia/python-ujson?arch=source&distro=mageia-8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.0-1.mga8"}]}],"ecosystem_specific":{"section":"core"},"database_specific":{"source":"https://advisories.mageia.org/MGASA-2022-0270.json"}}],"schema_version":"1.7.5","credits":[{"name":"Mageia","contact":["https://wiki.mageia.org/en/Packages_Security_Team"],"type":"COORDINATOR"}]}