Heap-based Buffer Overflow Affecting perl5 package, versions [,5.38.4-RC1)[5.39.0,5.40.2-RC1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PERL5-9695127
  • published15 Apr 2025
  • disclosed13 Apr 2025
  • creditNathan Mills

Introduced: 13 Apr 2025

NewCVE-2024-56406  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade perl5 to version 5.38.4-RC1, 5.40.2-RC1 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the S_pmtrans() function used by tr/// commands. If there are non-ASCII bytes on the lefthand side, the heap can be overflowed causing a potentially exploitable crash.

CVSS Base Scores

version 4.0
version 3.1