Skip to content
NewA calmer, faster ZeroHour

CVE-2026-124540

Stack exhaustion in JSON::XS before 4.05 with allow_tags

CVSS
—
EPSS
—
Published
·
Modified
Analyze CVE-2026-124540 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

JSON::XS for Perl before 4.05 does not count nested tagged values against max_depth in decode_tag when allow_tags is on. A caller who supplies a run of "(" bytes can recurse until the C stack is exhausted, causing an uncatchable segmentation fault. Applications that decode untrusted JSON with allow_tags enabled are affected.

What to do: Upgrade JSON::XS to 4.05.

ProductAffectedFixed in
Perl JSON::XSbefore 4.054.05
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag. With allow_tags, "(" starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unlike arrays and objects, this nesting is not counted against max_depth. A run of "(" bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of max_depth.

Weakness
CWE-674

In the news

1 story