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.
Metrics
Affected Vendors & Products
References
History
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-04-13T22:02:35.643Z
Reserved: 2024-12-23T02:07:38.152Z
Link: CVE-2024-56406

No data.

Status : Received
Published: 2025-04-13T14:15:14.527
Modified: 2025-04-13T22:15:12.767
Link: CVE-2024-56406
