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.
Weaknesses
- CWE-674 — CWE-674 Uncontrolled Recursion
Affected products
| Vendor | Product | Versions |
|---|---|---|
| — | — | 0 to <4.05 [affected] |
References
- https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 15 Nov 2026 08:05 UTC.