PT-2025-16185 · Perl+5 · Perl+5

Nathan Mills

·

Published

2024-12-18

·

Updated

2025-11-12

·

CVE-2024-56406

CVSS v3.1

8.4

High

VectorAV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Perl versions 5.33.1 through 5.41.10 Perl versions 5.34, 5.36, 5.38, and 5.40
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. This vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses. It is estimated that over 1.4 million services may be affected.
Recommendations For Perl versions 5.33.1 through 5.41.10, update to a version that includes the fix, such as 5.40.2 or 5.38.4. For Perl versions 5.34, 5.36, 5.38, and 5.40, update to a version that includes the fix, such as 5.40.2 or 5.38.4. As a temporary workaround, consider disabling the tr operator or restricting its use until a patch is available. Restrict access to the S do trans invmap function to minimize the risk of exploitation. Avoid using non-ASCII bytes in the left-hand-side of the tr operator until the issue is resolved.

Fix

DoS

RCE

Memory Corruption

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025:7500
ALT-PU-2025-7024
ALT-PU-2025-7044
AZL-60384
AZL-60409
BDU:2025-04857
CVE-2024-56406
DSA-5902-1
MGASA-2025-0274
OESA-2025-1470
OESA-2025-1471
OESA-2025-1472
OESA-2025-1473
OPENSUSE-SU-2025:15003-1
RHSA-2025:7500
SUSE-SU-2025:20334-1
SUSE-SU-2025:20532-1
USN-7434-1
USN-7434-2

Affected Products

Alt Linux
Astra Linux
Ibm Aix
Linuxmint
Perl
Ubuntu