UBUNTU-CVE-2026-129115: Medium severity ubuntu/libjson-xs-perl vulnerability

Published Nov 16, 2026
·
Updated

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 allowtags in encoderv. With allowtags, 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 TOJSON under convertblessed 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 Software

8 affected components
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*
ubuntu/libjson-xs-perl*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade JSON::XS to a version that resolves this vulnerability.

    Fixed in 4.05

Event History

Nov 16, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required to trigger this issue?

Encoding must use allow_tags, causing an object's FREEZE method to run. A value returned by FREEZE must then invoke Perl again during encoding, such as through TO_JSON with convert_blessed or through another FREEZE, and grow the Perl stack.

2

Are applications that do not use tagged-object serialization affected?

The described vulnerable path requires allow_tags in encode_rv. Applications that do not enable allow_tags are not affected by this specific condition.

3

What observable behavior can indicate that the issue was triggered?

The encode operation can read freed memory and return undef without reporting an error. Code that treats an undef encoding result as successful or does not check it may mask the failure.

4

What can be done before updating JSON::XS?

Avoid using allow_tags for affected encoding operations. Where possible, also avoid serialization paths in which FREEZE-returned values call back into Perl during encoding, including TO_JSON under convert_blessed or nested FREEZE handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203