CVE-2026-124541 JSON::XS versions before 4.05 for Perl leak the decoded part of a rejected long string in decode_str
- 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 leak the decoded part of a rejected long string in decode_str.
A string is decoded through a fixed-size buffer (16 KiB in 4.04), and each time the buffer fills its contents move into a new scalar. Nothing frees that scalar when the string is then rejected for a control character, an invalid escape, malformed UTF-8 or the end of the input.
A process that keeps running after a failed decode retains the decoded part of each rejected string, with its size chosen by the sender. Repeated requests exhaust process memory.
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-124541 vendor-advisory
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-125917 third-party-advisory