8.4

CVE-2024-56406: perl Heap-based Buffer Overflow

CVSS: 8.4v3.1HighModified
AliasesALPINE-CVE-2024-56406SUSE-SU-2025:20334-1RHSA-2025:7500
Published 13-04-2025Last modified 16-10-2025

Vulnerability summary

CVE-2024-56406 is a high (CVSS 8.4) Heap-based Buffer Overflow vulnerability in perl. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 44.3% of scored vulnerabilities.

Overall risk
34/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.4/10
010
High · v3.1 (CVE.org)
EPSS score
0.54%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 13-04-2025
    PublishedVulnerability first disclosed.
  2. 16-10-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.54%

Chance of exploitation in the next 30 days

Percentile

44%

Versus all other CVEs

30-day change

0.00 pp

From 0.54% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.54%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Redhat120 products
  • perl< 4:5.40.2-512.1.el10_0
  • perl-Attribute-Handlers< 0:1.03-512.1.el10_0
  • perl-AutoLoader< 0:5.74-512.1.el10_0
  • perl-AutoSplit< 0:5.74-512.1.el10_0
  • perl-autouse< 0:1.11-512.1.el10_0
Alpine1 product
  • perl≥ 5.33.1, < 5.36.2-r1 | ≥ 5.33.1, < 5.38.3-r1 | ≥ 5.33.1, < 5.40.1-r1
Debian1 product
  • perl< 5.40.1-3 | < 5.36.0-7+deb12u2
Opensuse1 product
  • perl&distro=openSUSE Tumbleweed< 5.40.2-1.1
Perl1 product
  • perl≥ 5.39.0, < 5.40.2-RC1 | ≥ 5.33.1, < 5.38.4-RC1 | ≥ 5.33.1, < 5.38.4 | ≥ 5.39.0, < 5.40.2 | ≥ 5.41.0, ≤ 5.41.10
Suse1 product
  • perl&distro=SUSE Linux Micro 6.0< 5.38.2-2.1
Ubuntu1 product
  • perl< 5.34.0-3ubuntu1.4 | < 5.38.2-3.2ubuntu0.1 | < 5.40.1-2ubuntu0.1

7 vendors · 126 products

References

22 links
Show all 22 references