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.
Metrics
Affected Vendors & Products
Source | ID | Title |
---|---|---|
![]() |
DSA-5902-1 | perl security update |
![]() |
EUVD-2024-54400 | A heap buffer overflow vulnerability was discovered in Perl. 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. |
![]() |
USN-7434-1 | Perl vulnerability |
![]() |
USN-7434-2 | Perl vulnerability |
Solution
Users should update perl to 5.40.2 or 5.38.4, or apply the upstream patch provided in the References section.
Workaround
No workaround given by the vendor.
Thu, 16 Oct 2025 14:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
cvssV3_1
|
cvssV3_1
|
Wed, 14 May 2025 03:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Redhat
Redhat enterprise Linux |
|
CPEs | cpe:/o:redhat:enterprise_linux:10.0 | |
Vendors & Products |
Redhat
Redhat enterprise Linux |
Wed, 30 Apr 2025 15:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Perl
Perl perl |
|
CPEs | cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* | |
Vendors & Products |
Perl
Perl perl |
Fri, 18 Apr 2025 17:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
cvssV3_1
|
ssvc
|
Tue, 15 Apr 2025 02:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|
Sun, 13 Apr 2025 22:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
|
Sun, 13 Apr 2025 19:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A heap buffer overflow vulnerability was discovered in Perl. 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. | 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. |
Title | Perl 5.34, 5.36, 5.38 and 5.40 are vulnerable to a heap buffer overflow when transliterating non-ASCII bytes | Perl is vulnerable to a heap buffer overflow when transliterating non-ASCII bytes |
Sun, 13 Apr 2025 17:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
|
Sun, 13 Apr 2025 13:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A heap buffer overflow vulnerability was discovered in Perl. 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. | |
Title | Perl 5.34, 5.36, 5.38 and 5.40 are vulnerable to a heap buffer overflow when transliterating non-ASCII bytes | |
Weaknesses | CWE-122 CWE-787 |
|
References |
|

Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2025-10-16T14:04:20.393Z
Reserved: 2024-12-23T02:07:38.152Z
Link: CVE-2024-56406

Updated: 2025-04-13T22:02:35.643Z

Status : Modified
Published: 2025-04-13T14:15:14.527
Modified: 2025-10-16T14:15:34.083
Link: CVE-2024-56406


No data.