Skip to content
OpenAdvisories
High · 7.5 CVE-2026-124541 EUVD-2026-125917GHSA-vgmh-4qpm-2xcv

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

Published Nov 14, 2026 · Updated Nov 17, 2026 · 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.

Affected products

VendorProductAffectedFixed
— JSON-XS < 4.05 4.05

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libjson-xs-perl 4.050-1 —
Debian 13 libjson-xs-perl No fix yet —
Debian 12 libjson-xs-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libjson-xs-perl No fix yet —
Ubuntu 26.04 LTS libjson-xs-perl No fix yet —
Ubuntu 24.04 LTS libjson-xs-perl No fix yet —
Ubuntu 22.04 LTS libjson-xs-perl No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libjson-xs-perl No fix yet —
Ubuntu Pro 18.04 LTS libjson-xs-perl No fix yet —
Ubuntu Pro 16.04 LTS libjson-xs-perl No fix yet —
Ubuntu Pro 14.04 LTS libjson-xs-perl No fix yet —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 perl-JSON-XS 1:3.01-2.amzn2.0.2 ALAS2-2026-4188

Advisories 1

References