{"id":"UBUNTU-CVE-2026-124540","details":"JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag. With allow_tags, \"(\" starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unlike arrays and objects, this nesting is not counted against max_depth. A run of \"(\" bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of max_depth.","modified":"2026-11-19T00:38:11.131857302Z","published":"2026-11-14T12:17:00Z","upstream":["CVE-2026-124540"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-124540"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-124540"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/45150798/"},{"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_name":"libjson-xs-perl","binary_version":"2.340-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124540.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-124540.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-124540.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-124540.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_name":"libjson-xs-perl","binary_version":"4.040-0ubuntu0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124540.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-124540.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_name":"libjson-xs-perl","binary_version":"4.040-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124540.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_name":"libjson-xs-perl","binary_version":"4.040-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124540.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"}]}