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.

Critical 9.1 Published Updated

Encoding objects with FREEZE under allow_tags in JSON::XS can read freed stack memory, causing crashes or memory disclosure in Perl apps.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
Yes
Fix
None listed

What is CVE-2026-129115?

CVE-2026-129115 is a critical use after free vulnerability, published on 14 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2026-129115?

An affected version is only exploitable if your software calls encode_rv or convert_blessed. Many projects that include it are not exposed.

How do I fix CVE-2026-129115?

No fix has been published for CVE-2026-129115 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-129115 being exploited?

There is no known exploitation of CVE-2026-129115 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-129115, GHSA-w99q-7mg2-3mhx, UBUNTU-CVE-2026-129115.

Is CVE-2026-129115 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free