# CVE-2026-124540: JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-14T11:52:57.348Z
- Modified: 2026-11-24T19:10:01.980Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- JSON-XS: before 4.05

## References

- <https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-124540](https://www.cve.org/CVERecord?id=CVE-2026-124540), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-124540](https://nvd.nist.gov/vuln/detail/CVE-2026-124540), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-124540 · Whole record: https://cve.day/CVE-2026-124540.json · Rebuilt by cve.day 2026-11-25T22:59:50.805Z
