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

No configuration.

History

17 Nov 2026, 16:17

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.1

14 Nov 2026, 12:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-14 12:17

Updated : 2026-11-24 19:10


NVD link : CVE-2026-129115

Mitre link : CVE-2026-129115

CVE.ORG link : CVE-2026-129115


JSON object : View

Products Affected

No product.

CWE
CWE-416

Use After Free