Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting perl-Crypt-PasswdMD5 package, versions <0:1.3-17.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.45% (41st 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-AMZN2-PERLCRYPTPASSWDMD5-17286718
  • published10 Jun 2026
  • disclosed8 May 2026

Introduced: 8 May 2026

CVE-2026-6659  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 perl-Crypt-PasswdMD5 to version 0:1.3-17.amzn2.0.1 or higher.
This issue was patched in ALAS2-2026-3343.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-Crypt-PasswdMD5 package and not the perl-Crypt-PasswdMD5 package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

Crypt::PasswdMD5 versions through 1.42 for Perl generates insecure random values for salts.

The built-in rand function is predictable, and unsuitable for cryptography.

CVSS Base Scores

version 3.1