{"schemaVersion":3,"id":"CVE-2026-32874","aliases":["GHSA-wgvc-ghv9-3pmm","PYSEC-2026-2291","UBUNTU-CVE-2026-32874","DEBIAN-CVE-2026-32874","CGA-5h59-7wp8-vqwr","CGA-7gpg-8w7w-7j7c"],"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+. Versions 5.4.0 through 5.11.0 contain an accumulating memory leak in JSON parsing large (outside of the range [-2^63, 2^64 - 1]) integers. The leaked memory is a copy of the string form of the integer plus an additional NULL byte. The leak occurs irrespective of whether the integer parses successfully or is rejected due to having more than sys.get_int_max_str_digits() digits, meaning that any sized leak per malicious JSON can be achieved provided that there is no limit on the overall size of the payload. Any service that calls ujson.load()/ujson.loads()/ujson.decode() on untrusted inputs is affected and vulnerable to denial of service attacks. This issue has been fixed in version 5.12.0.","dates":{"published":"2026-03-20T01:31:30.207Z","modified":"2026-07-15T01:07:33.770Z","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":"OSV · Chainguard","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}]},"epss":{"probability":0.00711,"percentile":0.52699,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.232,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00479},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00711,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00711,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00711,"percentile":0.52699}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00711,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00711,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00711,"percentile":0.52699}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime","description":"The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/401.html"},{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime","description":"The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/772.html"}],"affected":[{"vendor":"chainguard","product":"apache-beam-python-3.12-sdk","name":"apache-beam-python-3.12-sdk","label":"apache-beam-python-3.12-sdk","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/apache-beam-python-3.12-sdk","purlType":"apk","versions":[{"text":"< 2.71.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.71.0-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"ujson","name":"ujson","label":"ujson","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ujson","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.13.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.13.0-1","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":"< 5.9.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.10.0-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.11.0-3ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.9.0-1ubuntu0.1~esm1 | < 5.10.0-1ubuntu0.1 | All versions (No fix recorded) | < 5.11.0-3ubuntu0.1","eol":null,"hubHref":null},{"vendor":"PyPI","product":"ujson","name":"ujson","label":"ujson","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/ujson","purlType":"pypi","versions":[{"text":"≥ 5.4.0, < 5.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.4.0, < 5.12.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, < 5.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.4.0, < 5.12.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, < 5.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.4.0, < 5.12.0","eol":null,"hubHref":"/vendor/ultrajson/ultrajson"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wgvc-ghv9-3pmm","label":"github.com/ultrajson/ultrajson/security/advisories/GHSA-wgvc-ghv9-3pmm","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Vendor Advisory"]},{"url":"https://github.com/ultrajson/ultrajson/commit/4baeb950df780092bd3c89fc702a868e99a3a1d2","label":"github.com/ultrajson/ultrajson/commit/4baeb950df780092bd3c89fc702a868e99a3a1d2","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Patch"]},{"url":"https://github.com/ultrajson/ultrajson/releases/tag/5.12.0","label":"github.com/ultrajson/ultrajson/releases/tag/5.12.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Advisory","REPORT","Product","Release Notes"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-32874","label":"access.redhat.com/security/cve/CVE-2026-32874","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2449411","label":"bugzilla.redhat.com/show_bug.cgi?id=2449411","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32874.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32874.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32874","label":"nvd.nist.gov/vuln/detail/CVE-2026-32874","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ultrajson/ultrajson","label":"github.com/ultrajson/ultrajson","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2026-32874","label":"ubuntu.com/security/CVE-2026-32874","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-32874","label":"www.cve.org/CVERecord?id=CVE-2026-32874","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8219-1","label":"ubuntu.com/security/notices/USN-8219-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-32874","label":"security-tracker.debian.org/tracker/CVE-2026-32874","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32874.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32874.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0073"],"duplicates":[],"related":["CGA-W9FG-X5MF-7RR4","USN-8219-1"]},"timeline":[{"kind":"published","date":"2026-03-20T01:31:30.207Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:07:33.770Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:11:58.739Z","stale":false,"partial":false}}