CVE-2024-56406

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.6 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
CPANSecCNA
---
---
CVEADP
---
---
CISA-ADPADP
8.6 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 43%
VendorProductVersion
perlperl
5.33.1 ≤
𝑥
< 5.38.4
perlperl
5.39.0 ≤
𝑥
< 5.40.2
perlperl
5.41.0 ≤
𝑥
≤ 5.41.10
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
perl
bullseye
5.32.1-4+deb11u3
not-affected
bullseye (security)
5.32.1-4+deb11u4
fixed
bookworm
5.36.0-7+deb12u2
fixed
bookworm (security)
5.36.0-7+deb12u2
fixed
sid
5.40.1-3
fixed
trixie
5.40.1-3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
perl
plucky
Fixed 5.40.1-2ubuntu0.1
released
oracular
Fixed 5.38.2-5ubuntu0.1
released
noble
Fixed 5.38.2-3.2ubuntu0.1
released
jammy
Fixed 5.34.0-3ubuntu1.4
released
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected