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 VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
Type
CWE-416Use After Free
Timeline
Published14 Nov 2026
Updated2 Dec 2026
First seen14 Nov 2026
Track software like this
Free during beta