cve.bz

CVE-2026-124536 JSON::XS versions before 4.05 for Perl allow memory exhaustion by buffering incremental input past max_size after a NUL byte in incr_parse

no score yet

No CVSS score yet.

On this page
JSON::XS versions before 4.05 for Perl allow memory exhaustion by buffering incremental input past max_size after a NUL byte in incr_parse. The parser appends each chunk to its buffer and compares max_size with how far it has progressed, not with the buffer length. It treats a NUL byte as the end of the input, so a NUL within the first max_size bytes keeps it short of the limit. The buffer keeps growing, and incr_skip cannot remove the NUL. A peer streaming data to an incr_parse consumer can exhaust process memory regardless of max_size.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Assigned by
CPANSec (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-124536 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-124536?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-124536?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-124536 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-124536

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-124536](https://cve.bz/cve/badge/CVE-2026-124536.svg)](https://cve.bz/cve/CVE-2026-124536)

HTML:

<a href="https://cve.bz/cve/CVE-2026-124536"><img src="https://cve.bz/cve/badge/CVE-2026-124536.svg" alt="CVE-2026-124536"></a>

Versions

From the CNA's record in the CVE List.

ProductAffected
JSON-XSbefore 4.05

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libjson-xs-perlno fix listedDEBIAN-CVE-2026-124536

From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON