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.
A peer sending crafted JSON to an incr_parse consumer can corrupt the incremental buffer and crash Perl processes via out-of-memory.
- 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-129113?
CVE-2026-129113 is a critical integer overflow 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 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.
Weakness: CWE-191
Which versions are affected by CVE-2026-129113?
An affected version is only exploitable if your software calls incr_skip, incr_parse or incr_text. Many projects that include it are not exposed.
How do I fix CVE-2026-129113?
No fix has been published for CVE-2026-129113 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Check arithmetic on sizes and lengths before using the result. More about Integer overflow.
Is CVE-2026-129113 being exploited?
There is no known exploitation of CVE-2026-129113 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-129113, GHSA-4q52-849c-cv9p, UBUNTU-CVE-2026-129113.