CVE catalog

CVE-2026-124541

libjson-xs-perl affected and fixed versions

[CVE catalog]

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.

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.44% · Nov 22, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiansidlibjson-xs-perl4.050-1FixedDistribution-reported fixed boundary[CVE-2026-124541]
Debianforkylibjson-xs-perl4.050-1FixedDistribution-reported fixed boundary[CVE-2026-124541]
More observations (25)
Distribution / releasePackageVersionStatusSource
Debianbookwormlibjson-xs-perlNot reportedAffectedDistribution reports no fix[CVE-2026-124541]
Debianbookwormlibjson-xs-perl4.040-1~deb12u1Affected[CVE-2026-124541]
Debianbookworm-securitylibjson-xs-perl4.040-1~deb12u1Affected[CVE-2026-124541]
Debiantrixielibjson-xs-perlNot reportedAffectedDistribution reports no fix[CVE-2026-124541]
Debiantrixielibjson-xs-perl4.040-1~deb13u1Affected[CVE-2026-124541]
Debiantrixie-securitylibjson-xs-perl4.040-1~deb13u1Affected[CVE-2026-124541]
Ubuntu14.04libjson-xs-perl2.340-1Affected[UBUNTU-CVE-2026-124541]
Ubuntu14.04libjson-xs-perl2.340-1build1Affected[UBUNTU-CVE-2026-124541]
Ubuntu16.04libjson-xs-perl3.010-2Affected[UBUNTU-CVE-2026-124541]
Ubuntu16.04libjson-xs-perl3.010-2build1Affected[UBUNTU-CVE-2026-124541]
Ubuntu18.04libjson-xs-perl3.030-1build1Affected[UBUNTU-CVE-2026-124541]
Ubuntu18.04libjson-xs-perl3.040-1Affected[UBUNTU-CVE-2026-124541]
Ubuntu20.04libjson-xs-perl4.020-1Affected[UBUNTU-CVE-2026-124541]
Ubuntu20.04libjson-xs-perl4.020-1build1Affected[UBUNTU-CVE-2026-124541]
Ubuntu22.04libjson-xs-perl4.030-1build2Affected[UBUNTU-CVE-2026-124541]
Ubuntu22.04libjson-xs-perl4.030-1build3Affected[UBUNTU-CVE-2026-124541]
Ubuntu22.04libjson-xs-perl4.040-0ubuntu0.22.04.1Affected[UBUNTU-CVE-2026-124541]
Ubuntu24.04libjson-xs-perl4.030-2Affected[UBUNTU-CVE-2026-124541]
Ubuntu24.04libjson-xs-perl4.030-2build1Affected[UBUNTU-CVE-2026-124541]
Ubuntu24.04libjson-xs-perl4.030-2build2Affected[UBUNTU-CVE-2026-124541]
Ubuntu24.04libjson-xs-perl4.030-2build3Affected[UBUNTU-CVE-2026-124541]
Ubuntu24.04libjson-xs-perl4.040-0ubuntu0.24.04.1Affected[UBUNTU-CVE-2026-124541]
Ubuntu26.04libjson-xs-perl4.040-1Affected[UBUNTU-CVE-2026-124541]
Ubuntu26.10libjson-xs-perl4.040-1Affected[UBUNTU-CVE-2026-124541]
Ubuntu26.10libjson-xs-perl4.040-1build1Affected[UBUNTU-CVE-2026-124541]

[Debian bug #1153979]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libjson-xs-perl]Affected
    Details (4)
    • 4.040-1~deb12u1 · amd64 · bookworm

      Affected

      dsa · libjson-xs-perl · debian · bookworm; pypi · libjson-xs-perl · debian · 12

    • 4.040-1~deb12u1 · arm64 · bookworm

      Affected

      dsa · libjson-xs-perl · debian · bookworm; pypi · libjson-xs-perl · debian · 12

    • 4.040-1~deb12u1 · amd64 · bookworm-security

      Affected

      dsa · libjson-xs-perl · debian · bookworm; pypi · libjson-xs-perl · debian · 12

    • 4.040-1~deb12u1 · arm64 · bookworm-security

      Affected

      dsa · libjson-xs-perl · debian · bookworm; pypi · libjson-xs-perl · debian · 12

[Debian 13 (Trixie)]

  • [libjson-xs-perl]Affected
    Details (4)
    • 4.040-1~deb13u1 · amd64 · trixie

      Affected

      pypi · libjson-xs-perl · debian · 13

    • 4.040-1~deb13u1 · arm64 · trixie

      Affected

      pypi · libjson-xs-perl · debian · 13

    • 4.040-1~deb13u1 · amd64 · trixie-security

      Affected

      pypi · libjson-xs-perl · debian · 13

    • 4.040-1~deb13u1 · arm64 · trixie-security

      Affected

      pypi · libjson-xs-perl · debian · 13

Observed:

References