Skip to content

CVE-2026-129113 JSON::XS versions from 4.0_00 before 4.05 for Perl corrupt the incremental buffer length by chopping past its end in incr_skip after a top-level number

CriticalCVSS 9.1 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

JSON::XS versions from 4.0_00 before 4.05 for Perl corrupt the incremental buffer length by chopping past its end in incr_skip 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 incr_parse call without new input reads them again and moves the offset past the end of the buffer. incr_skip, 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 incr_parse consumer can make the next read of incr_text exit the process through perl's uncatchable out-of-memory path.

Upgrade path

8 packages: 1 fixed, 1 partially fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/libjson-xs-perl(Debian 12) = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more No fix listed No fix yet
debian/libjson-xs-perl(Debian 13) = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 26.10) All versions No fix listed No fix yet
debian/libjson-xs-perl(Debian 14) < 4.050-1; = 4.030-2; = 4.030-3; = 4.040-1 +3 more 4.050-1 Partially fixed
cpan JSON-XS >= 4.0_00, < 4.05 4.05 Fixed

Affected products

ProductAffected versionsFixed in
debian/libjson-xs-perl(Debian:12) All versions No fix listed
debian/libjson-xs-perl(Debian:14) All versions No fix listed
debian/libjson-xs-perl(Debian:13) All versions No fix listed
cpan JSON-XS >= 4.0_00, < 4.05 4.05
ubuntu/libjson-xs-perl(Ubuntu:22.04) All versions No fix listed
ubuntu/libjson-xs-perl(Ubuntu:24.04) All versions No fix listed
ubuntu/libjson-xs-perl(Ubuntu:26.04) All versions No fix listed
ubuntu/libjson-xs-perl(Ubuntu:26.10) All versions No fix listed
debian/libjson-xs-perl(Debian:12) = 4.030-2 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.030-3 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.040-1 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.040-1~deb12u1 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.040-1~deb13u1 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.050-1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.030-2 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.030-3 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.040-1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.040-1~deb12u1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.040-1~deb13u1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.050-1 No fix listed
debian/libjson-xs-perl(Debian:14) < 4.050-1 4.050-1
debian/libjson-xs-perl(Debian:14) = 4.030-2 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.030-3 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.040-1 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.040-1~deb12u1 No fix listed
Show 1 more
ProductAffected versionsFixed in
debian/libjson-xs-perl(Debian:14) = 4.040-1~deb13u1 No fix listed

References