CPANSA-JSON-XS-2026-124539: JSON-XS vulnerability

Publisher giterlizzi Document category csaf_security_advisory
Initial release date 2026-11-14T00:00:00 Engine CSAF Perl Toolkit 0.26
Current release date 2026-11-14T00:00:00 Build Date
Current version 1 Status final
CVSS v3.1 Base Score 9.1 Severity
Original language Language en
Also referred to

Vulnerability Description

JSON::XS versions before 4.05 for Perl leak the decoded key of an object rejected for a missing colon in decode_hv.

Unless it is short plain ASCII, a quoted key is decoded into a new scalar. Nothing frees that scalar when the object is rejected for a missing ':' after the key.

A process that keeps running after a failed decode retains one key per rejected document, with its size chosen by the sender. Repeated requests exhaust process memory.

Vulnerabilities

CVE-2026-124539

Vulnerability Description

JSON::XS versions before 4.05 for Perl leak the decoded key of an object rejected for a missing colon in decode_hv.

Unless it is short plain ASCII, a quoted key is decoded into a new scalar. Nothing frees that scalar when the object is rejected for a missing ':' after the key.

A process that keeps running after a failed decode retains one key per rejected document, with its size chosen by the sender. Repeated requests exhaust process memory.

Weakness CWE-401 : Missing Release of Memory after Effective Lifetime

Product status

Known affected
Product Score
JSON-XS less than 4.05
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H 9.1 Critical
Fixed

giterlizzi

Namespace: https://github.com/giterlizzi/

gdt@cpan.org

References

Revision history

Version Date of the revision Summary of the revision
1 Sat Nov 14 00:00:00 2026 First release

Sharing rules

TLP:WHITE
For the TLP version see: https://www.first.org/tlp/