cve.bz

CVE-2024-56406 perl perl: Out-of-bounds Write

8.4 highEPSS 0.5%Fix available

High (8.4) in perl perl. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
A heap buffer overflow vulnerability was discovered in Perl. Release branches 5.34, 5.36, 5.38 and 5.40 are affected, including development versions from 5.33.1 through 5.41.10. When there are non-ASCII bytes in the left-hand-side of the `tr` operator, `S_do_trans_invmap` can overflow the destination pointer `d`.    $ perl -e '$_ = "\x{FF}" x 1000000; tr/\xFF/\x{100}/;'    Segmentation fault (core dumped) It is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-56406 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-56406?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-56406?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-56406 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
perlfrom 5.41.0 through 5.41.10
perlfrom 5.39.0 before 5.40.2-RC1
perlfrom 5.33.1 before 5.38.4-RC1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12perl5.36.0-7+deb12u2DEBIAN-CVE-2024-56406 DSA-5902-1
Debian13, 14perl5.40.1-3DEBIAN-CVE-2024-56406
Ubuntu22.04:LTSperl5.34.0-3ubuntu1.4UBUNTU-CVE-2024-56406 USN-7434-1
Ubuntu24.04:LTSperl5.38.2-3.2ubuntu0.1UBUNTU-CVE-2024-56406 USN-7434-1
Ubuntu25.04perl5.40.1-2ubuntu0.1USN-7434-2
Red Hatenterprise_linux:10.0perl, perl-libs, perl-devel and 7 more4:5.40.2-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-AutoSplit, perl-AutoLoader0:5.74-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-B, perl-B-debuginfo0:1.89-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-Benchmark, perl-Sys-Hostname, perl-Sys-Hostname-debuginfo0:1.25-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-Class-Struct0:0.68-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-DBM_Filter0:0.06-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-Devel-Peek, perl-Devel-Peek-debuginfo0:1.34-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-Devel-SelfStubber0:1.06-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-DynaLoader0:1.56-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-English, perl-autouse0:1.11-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-Errno0:1.38-512.1.el10_0RHSA-2025:7500
Red Hatenterprise_linux:10.0perl-ExtUtils-Constant0:0.25-512.1.el10_0RHSA-2025:7500
54 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Micro 6.0perl5.38.2-2.1SUSE-SU-2025:20334-1
SUSELinux Micro 6.1perl5.38.2-slfo.1.1_2.1SUSE-SU-2025:20532-1
openSUSETumbleweedperl5.40.2-1.1openSUSE-SU-2025:15003-1
AlmaLinux10perl, perl-libs, perl-devel and 3 more4:5.40.2-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-AutoSplit, perl-AutoLoader5.74-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-B1.89-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-Benchmark, perl-Sys-Hostname1.25-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-Class-Struct0.68-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-DBM_Filter0.06-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-Devel-Peek1.34-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-Devel-SelfStubber1.06-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-DynaLoader1.56-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-English, perl-autouse1.11-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-Errno1.38-512.1.el10_0ALSA-2025:7500
AlmaLinux10perl-ExtUtils-Constant0.25-512.1.el10_0ALSA-2025:7500
54 more for AlmaLinux in the JSON.
Rocky Linux10perl4:5.40.2-512.1.el10_0RLSA-2025:7500
Alpinev3.18perl5.36.2-r1ALPINE-CVE-2024-56406
Alpinev3.19, v3.20perl5.38.3-r1ALPINE-CVE-2024-56406
Alpinev3.21, v3.22, v3.23 and 1 moreperl5.40.1-r1ALPINE-CVE-2024-56406
Azure Linux2perl5.34.1-490AZL-60384
Azure Linux3perl5.38.2-507AZL-60409
Alpaquita23perl5.36.2-r1BELL-CVE-2024-56406
Alpaquitastreamperl5.40.2-r0BELL-CVE-2024-56406
BellSoft Hardened Containers23perl5.36.2-r1BELL-CVE-2024-56406
BellSoft Hardened Containersstreamperl5.40.2-r0BELL-CVE-2024-56406

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important vulnerability because a heap buffer overflow vulnerability exists in the tr/// operator causing DoS and arbitrary code execution, which can disrupt system services, background system jobs.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-4:5.40.2-512.1.el10_0Fixed 2025-05-13RHSA-2025:7500
Red Hat Enterprise Linux 6perlOut of support scope
Red Hat Enterprise Linux 7perlOut of support scope
Red Hat Enterprise Linux 8perlNot affected
Red Hat Enterprise Linux 8perl:5.32/perlNot affected
Red Hat Enterprise Linux 9perlNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-56406.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON