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

Published Nov 16, 2026
·
Updated

JSON::XS versions from 4.000 before 4.05 for Perl corrupt the incremental buffer length by chopping past its end in incrskip after a top-level number. The incremental parser scans any run of digits, signs, dots and exponent markers as one number, but the decoder stops at the end of a valid number, so the parser keeps an offset into bytes it has not decoded. It then empties the buffer without clearing those bytes, and a later incrparse call without new input reads them again and moves the offset past the end of the buffer. incrskip, the documented recovery after an error, removes that many bytes and the buffer length wraps. A peer sending input such as "1-2" to an incrparse consumer can make the next read of incrtext exit the process through perl's uncatchable out-of-memory path.

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 to a fixed release 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

Which applications are exposed to this issue?

Applications using JSON::XS incremental parsing on data received from a peer are exposed if they can process malformed top-level numeric input. The affected code path involves incr_parse and the documented incr_skip recovery method.

2

What input and call sequence can trigger the failure?

A peer can send input such as "1-2" to an incr_parse consumer. After the parser retains an offset beyond the decoded buffer, a later incremental parse call without new input can reuse stale bytes; calling incr_skip then removes an invalid byte count and can wrap the buffer length.

3

What is the practical impact?

The next read of incr_text can cause the Perl process to exit through an uncatchable out-of-memory path. This is a denial-of-service condition for affected consumers.

4

How can I determine whether a deployment needs remediation?

Check whether it uses JSON::XS versions from 4.0_00 before 4.05 and whether it uses the incremental parsing API with incr_parse, incr_text, or incr_skip. The affected Ubuntu software package is libjson-xs-perl.

5

What can be done if an update cannot be applied immediately?

Avoid processing untrusted peer input through the affected incremental parsing and recovery flow, particularly malformed top-level number-like strings such as "1-2". Ensure application paths do not call incr_skip after this parser state is reached.

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