CVE-2024-56406 Perl is vulnerable to a heap buffer overflow when transliterating non-ASCII bytes
HighCVSS 8.4
EPSS 0.54%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
15 packages: 15 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/perl(Alpine v3.18) | >= 5.33.1, < 5.36.2-r1 | 5.36.2-r1 | Fixed |
| alpine/perl(Alpine v3.19) | >= 5.33.1, < 5.38.3-r1 | 5.38.3-r1 | Fixed |
| alpine/perl(Alpine v3.20) | >= 5.33.1, < 5.38.3-r1 | 5.38.3-r1 | Fixed |
| alpine/perl(Alpine v3.21) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 | Fixed |
| alpine/perl(Alpine v3.22) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 | Fixed |
| alpine/perl(Alpine v3.23) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 | Fixed |
| alpine/perl(Alpine v3.24) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 | Fixed |
| azure linux perl(Azure Linux 3.0) | < 5.38.2-507 | 5.38.2-507 | Fixed |
| cbl-mariner perl(CBL-Mariner 2.0) | < 5.34.1-490 | 5.34.1-490 | Fixed |
| debian/perl(Debian 12) | < 5.36.0-7+deb12u2; = 5.36.0-7; = 5.36.0-7+deb12u1 | 5.36.0-7+deb12u2 | Fixed |
| debian/perl(Debian 13) | < 5.40.1-3 | 5.40.1-3 | Fixed |
| debian/perl(Debian 14) | < 5.40.1-3 | 5.40.1-3 | Fixed |
| perl | >= 5.33.1, < 5.38.4; >= 5.33.1, < 5.38.4-RC1; >= 5.39.0, < 5.40.2; >= 5.39.0, < 5.40.2-RC1 +1 more | 5.38.4, 5.38.4-RC1, 5.40.2, 5.40.2-RC1 | Fixed |
| ubuntu/perl(Ubuntu 22.04) | < 5.34.0-3ubuntu1.4 | 5.34.0-3ubuntu1.4 | Fixed |
| ubuntu/perl(Ubuntu 24.04) | < 5.38.2-3.2ubuntu0.1 | 5.38.2-3.2ubuntu0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux perl(Azure Linux:3.0) | < 5.38.2-507 | 5.38.2-507 |
| cbl-mariner perl(CBL-Mariner:2.0) | < 5.34.1-490 | 5.34.1-490 |
| debian/perl(Debian:12) | < 5.36.0-7+deb12u2 | 5.36.0-7+deb12u2 |
| debian/perl(Debian:12) | = 5.36.0-7 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u1 | No fix listed |
| debian/perl(Debian:13) | < 5.40.1-3 | 5.40.1-3 |
| debian/perl(Debian:14) | < 5.40.1-3 | 5.40.1-3 |
| ubuntu/perl(Ubuntu:22.04) | < 5.34.0-3ubuntu1.4 | 5.34.0-3ubuntu1.4 |
| perl | >= 5.41.0, <= 5.41.10 | No fix listed |
| perl | >= 5.39.0, < 5.40.2-RC1 | 5.40.2-RC1 |
| perl | >= 5.33.1, < 5.38.4-RC1 | 5.38.4-RC1 |
| ubuntu/perl(Ubuntu:24.04) | < 5.38.2-3.2ubuntu0.1 | 5.38.2-3.2ubuntu0.1 |
| perl | >= 5.33.1, < 5.38.4 | 5.38.4 |
| perl | >= 5.39.0, < 5.40.2 | 5.40.2 |
| alpine/perl(Alpine:v3.18) | >= 5.33.1, < 5.36.2-r1 | 5.36.2-r1 |
| alpine/perl(Alpine:v3.19) | >= 5.33.1, < 5.38.3-r1 | 5.38.3-r1 |
| alpine/perl(Alpine:v3.20) | >= 5.33.1, < 5.38.3-r1 | 5.38.3-r1 |
| alpine/perl(Alpine:v3.21) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 |
| alpine/perl(Alpine:v3.22) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 |
| alpine/perl(Alpine:v3.23) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 |
| alpine/perl(Alpine:v3.24) | >= 5.39.0, < 5.40.1-r1 | 5.40.1-r1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2024-56406 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7434-1 vendor-advisory
- USN-7434-2 vendor-advisory
- www.cve.org
- github.com patch
- metacpan.org release-notes
- metacpan.org release-notes
- www.openwall.com mailing-list
- www.openwall.com mailing-list
- www.openwall.com mailing-list
- security.alpinelinux.org vendor-advisory