CVE-2026-124541
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.
- Score
- –
- Published
- 2026-11-14
- Links
- NVD · cve.org · Report wrong data
Matched ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| converters/p5-JSON-XS | p5-JSON-XS | 4.04 | unaddressed | sunpoet@FreeBSD.org |
Template for a VuXML entry
Check the version numbers before you commit this entry. Some ports share an entry in the CVE database with another port, such as sqlite2 and sqlite3. The version shown here may then be one that never existed for this port.
Ranges per package from the CVE rows that match this port, in pkg notation with the port's epoch and revision, every bound checked with pkg; one range per epoch the port actually had. make newentry in security/vuxml creates the vid.
converters/p5-JSON-XS (CPE matched by the package name) has no USES=cpe. The CVE was matched through a CPE from another source, so the package and the version range may belong to a different product. Check the CVE record before using this entry.
<vuln vid="FIXME (make newentry)">
<topic>p5-JSON-XS -- FIXME</topic>
<affects>
<package>
<name>p5-JSON-XS</name>
<range><lt>4.05</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>CVE-2026-124541: 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.</p>
</body>
</description>
<references>
<cvename>CVE-2026-124541</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-124541</url>
</references>
<dates>
<discovery>2026-11-14</discovery>
<entry>2026-11-15</entry>
</dates>
</vuln>