CVE-2026-124540 JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag
HighCVSS 7.5
EPSS 0.44%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libjson-xs-perl(Debian 12) | = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more | No fix listed | No fix yet |
| debian/libjson-xs-perl(Debian 13) | = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cpan JSON-XS | < 4.05 | 4.05 | Fixed |
| debian/libjson-xs-perl(Debian 14) | < 4.050-1; = 4.030-2; = 4.030-3; = 4.040-1 +2 more | 4.050-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cpan JSON-XS | < 4.05 | 4.05 |
| ubuntu/libjson-xs-perl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libjson-xs-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libjson-xs-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libjson-xs-perl(Ubuntu:26.10) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:12) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.030-2 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.030-3 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.040-1 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.040-1~deb12u1 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.040-1~deb13u1 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.050-1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.030-2 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.030-3 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.040-1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.040-1~deb12u1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.040-1~deb13u1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.050-1 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | < 4.050-1 | 4.050-1 |
| debian/libjson-xs-perl(Debian:14) | = 4.030-2 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.030-3 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.040-1 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.040-1~deb12u1 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.040-1~deb13u1 | No fix listed |
References
- metacpan.org release-notes
- Debian Security Tracker CVE-2026-124540 vendor-advisory
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-125918 third-party-advisory