CVE-2026-124540
JSON

7.5high

JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

Description

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.

Affected

Product or packageVersionsReported by
JSON-XSbefore 4.05CVE List

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-124540 changed 2026-11-17CVE Terms of Use
NVDCVE-2026-124540 changed 2026-11-24Public domain