Uncontrolled recursion in JSON::XS decode_tag exhausts the stack
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA. Impact type from CWE-674.
Summary
JSON::XS versions before 4.05 for Perl are affected. With allow_tags enabled, nested tagged values are decoded recursively without being counted against max_depth, so a remote attacker who can supply JSON input can exhaust the C stack with a run of tag bytes, causing an uncatchable segmentation fault (CWE-674).
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | JSON-XS | before 4.05 | 4.05 | Patch available | CNA |
- JSON-XS Vendor— Affected before 4.05 Fixed in 4.05 Patch available CNA
Remediation
Upgrade JSON::XS to version 4.05 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
- Fix · CNA JSON-XS Fixed in 4.05
Timeline
- 2026-11-14 Threatist record created from CVE-2026-124540
- 2026-11-14 Alias added: GHSA-r77g-jhw3-q6vc
References
Sources
- CVE-2026-124540 · CVE Program
- CVE-2026-124540 · NVD
- FIRST EPSS
- GHSA-r77g-jhw3-q6vc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences