CVE-2026-124540: JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag
JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allowtags in decodetag.
With allowtags, "(" 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 maxdepth.
A run of "(" bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of maxdepth.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.05