Live threats

All CVEs

CVE-2026-129114

Heap buffer overflow in JSON::XS for Perl

Critical 9.8 No auth needed

Priority
76
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Nov 14, 2026
Updated
Nov 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-122, CWE-193
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

JSON::XS versions 3.04 through 4.04 for Perl contain a heap buffer overflow in the incr_parse function. An unauthenticated remote attacker can send specially crafted fragmented data to write one byte past the buffer boundary, potentially causing memory corruption, denial of service, or arbitrary code execution.

Show the original NVD text

JSON::XS versions from 3.04 before 4.05 for Perl write one byte past a heap buffer when appending a one-byte chunk in incr_parse. The incremental buffer grows to one and a half times the length it must hold, with no room reserved for the terminating NUL. For an empty buffer and a one-byte chunk that request is one byte, which a buffer whose front was removed by earlier decodes can already have, so nothing is reallocated and the NUL lands one byte past the allocation. A peer streaming data to an incr_parse consumer, choosing how the input is split into reads, can cause a one-byte heap out-of-bounds write.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 4.05

Update JSON::XS to version 4.05 or later.

Vendor advisory · metacpan.org ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.