Skip to content

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

HighCVSS 7.5 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/libjson-xs-perl(Debian 12) = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more No fix listed No fix yet
debian/libjson-xs-perl(Debian 13) = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libjson-xs-perl(Ubuntu 26.10) All versions No fix listed No fix yet
cpan JSON-XS < 4.05 4.05 Fixed
debian/libjson-xs-perl(Debian 14) < 4.050-1; = 4.030-2; = 4.030-3; = 4.040-1 +2 more 4.050-1 Fixed

Affected products

ProductAffected versionsFixed in
cpan JSON-XS < 4.05 4.05
ubuntu/libjson-xs-perl(Ubuntu:22.04) All versions No fix listed
ubuntu/libjson-xs-perl(Ubuntu:24.04) All versions No fix listed
ubuntu/libjson-xs-perl(Ubuntu:26.04) All versions No fix listed
ubuntu/libjson-xs-perl(Ubuntu:26.10) All versions No fix listed
debian/libjson-xs-perl(Debian:12) All versions No fix listed
debian/libjson-xs-perl(Debian:12) = 4.030-2 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.030-3 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.040-1 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.040-1~deb12u1 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.040-1~deb13u1 No fix listed
debian/libjson-xs-perl(Debian:12) = 4.050-1 No fix listed
debian/libjson-xs-perl(Debian:13) All versions No fix listed
debian/libjson-xs-perl(Debian:13) = 4.030-2 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.030-3 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.040-1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.040-1~deb12u1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.040-1~deb13u1 No fix listed
debian/libjson-xs-perl(Debian:13) = 4.050-1 No fix listed
debian/libjson-xs-perl(Debian:14) < 4.050-1 4.050-1
debian/libjson-xs-perl(Debian:14) = 4.030-2 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.030-3 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.040-1 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.040-1~deb12u1 No fix listed
debian/libjson-xs-perl(Debian:14) = 4.040-1~deb13u1 No fix listed

References