CVE-2026-129115 JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result's serialisation grows the Perl stack under allow_tags in encode_rv
CriticalCVSS 9.1
EPSS 0.43%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result's serialisation grows the Perl stack under allow_tags in encode_rv.
With allow_tags, an object's FREEZE method is called in list context and each returned value is encoded through a saved Perl stack pointer. When encoding a returned value calls back into Perl, through TO_JSON under convert_blessed or another FREEZE, and that callback grows the stack, the stack is reallocated while the saved pointer still refers to the freed block.
Encoding such objects reads freed memory, and encode can return undef without an error.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libjson-xs-perl(Debian:12) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:14) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:13) | All versions | No fix listed |
| cpan JSON-XS | >= 3.0, < 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) | = 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) | = 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.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 |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libjson-xs-perl(Debian:14) | = 4.050-1 | No fix listed |
References
- metacpan.org release-notes
- Debian Security Tracker CVE-2026-129115 vendor-advisory
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org