Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.1
CVE-2026-129115: JSON::XS may read invalid memory when encoding objects
CVE-2026-129115 · published 19 days ago
Summary
The Perl JSON::XS library versions from 3.0 up to 4.04 can read memory that has already been released while converting certain objects to JSON. This can happen when an object's custom freeze method triggers further conversions that expand the Perl call stack. Update the library to the latest version or avoid using the allow_tags option with custom freeze methods to prevent the issue.
What to do
- Update debian libjson-xs-perl to version 4.050-1.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Debian:12 | debian | libjson-xs-perl | All versions |
| Ubuntu:14.04:LTS | canonical | libjson-xs-perl | All versions |
| Debian:14 | debian | libjson-xs-perl |
< 4.050-1 Fix: upgrade to 4.050-1
|
Original advisory text
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
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.
References
- https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes
- https://security-tracker.debian.org/tracker/CVE-2026-129115 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-129115 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-129115 Third Party Advisory
- https://lists.security.metacpan.org/cve-announce/msg/45150807/ Third Party Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
9.1
Critical
Type
CWE-416Use After Free
Timeline
Published14 Nov 2026
Updated2 Dec 2026
First seen14 Nov 2026
Sources
CVE-2026-129115 · NVD
CVE-2026-129115 · MITRE
DEBIAN-CVE-2026-129115 · OSV
UBUNTU-CVE-2026-129115 · OSV
Track software like this
Free during beta