# CVE-2026-124541: JSON::XS versions before 4.05 for Perl leak the decoded part of a rejected long string in decode_str

- 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:53:12.301Z
- Modified: 2026-11-24T19:10:01.980Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

JSON::XS versions before 4.05 for Perl leak the decoded part of a rejected long string in decode_str.

A string is decoded through a fixed-size buffer (16 KiB in 4.04), and each time the buffer fills its contents move into a new scalar. Nothing frees that scalar when the string is then rejected for a control character, an invalid escape, malformed UTF-8 or the end of the input.

A process that keeps running after a failed decode retains the decoded part of each rejected string, with its size chosen by the sender. Repeated requests exhaust process memory.

(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-124541](https://www.cve.org/CVERecord?id=CVE-2026-124541), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-124541](https://nvd.nist.gov/vuln/detail/CVE-2026-124541), Public domain, modified 2026-11-24

---

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