{"id":"UBUNTU-CVE-2026-124536","details":"JSON::XS versions before 4.05 for Perl allow memory exhaustion by buffering incremental input past max_size after a NUL byte in incr_parse. The parser appends each chunk to its buffer and compares max_size with how far it has progressed, not with the buffer length. It treats a NUL byte as the end of the input, so a NUL within the first max_size bytes keeps it short of the limit. The buffer keeps growing, and incr_skip cannot remove the NUL. A peer streaming data to an incr_parse consumer can exhaust process memory regardless of max_size.","modified":"2026-11-19T00:38:11.178869004Z","published":"2026-11-14T12:17:00Z","upstream":["CVE-2026-124536"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-124536"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-124536"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/45150791/"},{"type":"REPORT","url":"https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes"}],"affected":[{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.340-1","2.340-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.340-1build1","binary_name":"libjson-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.010-2","3.010-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjson-xs-perl","binary_version":"3.010-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.030-1build1","3.040-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjson-xs-perl","binary_version":"3.040-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.020-1","4.020-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjson-xs-perl","binary_version":"4.020-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.030-1build2","4.030-1build3","4.040-0ubuntu0.22.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.040-0ubuntu0.22.04.1","binary_name":"libjson-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.030-2","4.030-2build1","4.030-2build2","4.030-2build3","4.040-0ubuntu0.24.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.040-0ubuntu0.24.04.1","binary_name":"libjson-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.040-1","4.040-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.040-1build1","binary_name":"libjson-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}},{"package":{"name":"libjson-xs-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.040-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.040-1","binary_name":"libjson-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124536.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}