Skip to main content

Crypt::PasswdMD5 EUVDEUVD-2026-28809

| CVE-2026-6659 HIGH
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-05-08 CPANSec GHSA-j539-xxc6-73wf
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain password hashes
  2. Delivery
    Analyze salt patterns
  3. Exploit
    Identify PRNG seed state
  4. Execution
    Generate targeted rainbow table
  5. Persist
    Crack passwords offline
  6. Impact
    Authenticate as compromised users

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
Exploitation Conditions

Exploitation requires the attacker to obtain access to password hashes generated by vulnerable Crypt::PasswdMD5 versions. This occurs through database breach, SQL injection, backup file exposure, memory dumps, authentication protocol capture (if hashes transmitted), or compromised application logs containing credential data. No special configuration is required in the Crypt::PasswdMD5 module itself - the insecure rand() usage is present in default implementation across all vulnerable versions. However, the CVSS network vector (AV:N) may be misleading: the cryptographic weakness exists in all configurations, but remote exploitation specifically requires network-accessible hash storage or transmission. Limiting factors: (1) Attack is offline against captured hashes, not real-time against running services. (2) Passwords with high entropy (long, complex) remain harder to crack even with predictable salts. (3) Systems that never expose hashes outside protected memory/storage face lower immediate risk despite the underlying vulnerability.

Impact

This vulnerability presents a significant but nuanced risk profile. CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) accurately reflects that exploitation requires no authentication or special access, and the vulnerability is present in default configurations. The 'High' confidentiality impact is appropriate since successful exploitation enables password recovery. SSVC framework confirms automatable exploitation with partial technical impact, meaning attackers can systematically target systems using these hashes. However, several factors moderate real-world urgency: (1) Exploitation requires ACCESS to the generated password hashes (database breach, network intercept, or system compromise), not just network access to a running service. The AV:N vector may overstate immediate exploitability if hashes are stored securely. (2) No active exploitation confirmed (SSVC: exploitation=none) and no KEV listing provided. (3) Attack success depends on hash exposure context - hashes transmitted over networks or stored in breachable databases face higher risk than those in protected credential stores. (4) Modern password policies with sufficient length/complexity provide some defense-in-depth even with weak salts. Critical gap: EPSS probability not provided, making it difficult to assess likelihood of real-world targeting. Organizations should prioritize remediation based on whether they store/transmit Crypt::PasswdMD5 hashes in potentially exposed systems, not just on the CVSS score alone.

Exploit ScenarioDerived

An attacker compromises a database backup or intercepts authentication traffic containing Crypt::PasswdMD5 hashes. Knowing the module uses predictable rand() for salt generation, they analyze the salt patterns and identify the likely PRNG seed state based on timestamp or process ID information. They then generate a targeted rainbow table using only the limited set of probable salts, reducing the hash cracking workload by orders of magnitude compared to properly salted hashes. Within hours rather than months, they recover plaintext passwords for privileged accounts and pivot to full system compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Weak salt generation in Crypt::PasswdMD5 (Perl) through version 1.42 enables password hash cracking via predictable random values. The module uses Perl's built-in rand() function for salt generation instead of cryptographically secure random sources, allowing attackers to predict salt values and drastically reduce the computational cost of offline password cracking attacks. CVSS 7.5 (High) with network vector and no authentication required. SSVC assessment indicates the vulnerability is automatable with partial technical impact. EPSS and KEV data not provided, but the cryptographic weakness is architecturally exploitable wherever these password hashes are transmitted or stored in accessible locations.

RemediationAI

Upgrade to Crypt::PasswdMD5 version 1.43 or later when available (patch status not confirmed in provided data - verify current release version at https://metacpan.org/release/RSAVAGE/Crypt-PasswdMD5). If patched version is not yet released, implement immediate compensating controls: (1) Replace Crypt::PasswdMD5 with secure alternatives like Crypt::Bcrypt, Crypt::Argon2, or Authen::Passphrase which use cryptographically secure random sources and modern KDFs. This is the recommended long-term solution as MD5-based password hashing is itself deprecated. (2) If replacement is not immediately feasible, manually patch the salt generation code at lines 35-47 of PasswdMD5.pm to use Crypt::Random or reading from /dev/urandom instead of rand(). Trade-off: requires code modification and testing. (3) Force re-hashing of all existing passwords with secure implementation upon next user authentication. (4) Implement additional hash exposure controls: encrypt password databases at rest, use TLS for all authentication traffic, restrict database access with principle of least privilege, enable database access logging. Monitor for unusual password hash access patterns. Review oss-security mailing list discussion at http://www.openwall.com/lists/oss-security/2026/05/08/17 for community-developed patches and migration guidance.

Affected VersionsENISA

Crypt::PasswdMD5 0 ≤1.42

Affected Packages

euvd crypt_passwdmd5 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Crypt::PasswdMD5 is a Perl module implementing MD5-based Unix password hashing (crypt format). The vulnerability stems from CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator). The module's salt generation routine uses Perl's rand() function, which implements a predictable linear congruential generator (LCG) unsuitable for security purposes. Cryptographic salts must be generated from secure random sources (like /dev/urandom or Crypt::Random) to ensure each password hash has sufficient entropy. Predictable salts allow attackers to precompute rainbow tables or significantly reduce the search space for brute-force attacks. The CPE identifier (cpe:2.3:a:rsavage:crypt::passwdmd5) confirms this affects Ron Savage's implementation. Source code reference points to lines 35-47 of PasswdMD5.pm where the insecure rand() call occurs.

Know when Crypt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
SUSE HIGH
Red Hat 6.1 MEDIUM

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
CVSS changed
May 08, 2026 - 19:22 NVD
7.5 (None) 7.5 (HIGH)
CVE Published
May 08, 2026 - 17:17 nvd
UNKNOWN (no severity yet)
CVE Published
May 08, 2026 - 17:17 nvd
HIGH 7.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Crypt::PasswdMD5 through version 1.42 uses weak salt generation that enables efficient offline password cracking attacks against stored password hashes. Any organization using this Perl module for password hashing faces a critical risk of credential compromise if hashes are exposed, as attackers can predict salt values and significantly accelerate brute-force attacks. This affects authentication security for any application or service relying on this library.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Immediate interim mitigations: (1) Restrict access to password hash storage via filesystem and database permissions; (2) migrate to alternative password hashing libraries such as bcrypt (Crypt::Eksblowfish::Bcrypt), scrypt (Crypt::scrypt), or Argon2 (Crypt::Argon2); (3) implement hash rotation during user authentication events; (4) enforce MFA on systems using this module to reduce reliance on password strength alone.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Social Media
3
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Crypt

View all
CVE-2026-16235 CRITICAL
9.8 Jul 20

Predictable salt generation in Crypt::Password through version 0.28 for Perl weakens the security of stored password has

CVE-2026-30909 CRITICAL
9.8 Mar 08

Perl Crypt::NaCl::Sodium module through 2.002 has potential integer overflows in cryptographic operations that could wea

CVE-2025-15444 CRITICAL
9.8 Jan 06

Crypt::Sodium::XS for Perl bundles a vulnerable version of libsodium (<= 1.0.20) that has a signature verification flaw.

CVE-2026-9265 CRITICAL
9.1 Jun 20

Heap out-of-bounds read in the Perl module Crypt::OpenSSL::PKCS12 before version 1.96 lets a crafted PKCS#12 file leak a

CVE-2026-58102 CRITICAL
9.1 Jul 13

Heap out-of-bounds read in the Crypt::OpenSSL::X509 Perl module (versions before 2.1.3) lets a crafted X.509 certificate

CVE-2026-2588 CRITICAL
9.1 Feb 23

Integer overflow in Crypt::NaCl::Sodium Perl module through version 2.001 on 32-bit systems. The Sodium.xs binding casts

CVE-2026-14570 HIGH
7.5 Jul 05

Private-key recovery in the Crypt::DSA Perl module (all versions before 1.22) stems from a biased random number generato

CVE-2026-17510 HIGH
7.5 Aug 09

NULL pointer dereference in Crypt::OpenSSL::PKCS12 before version 1.98 for Perl enables process crashes when any caller

CVE-2026-6656 HIGH
7.5 Jul 20

Timing side-channel in the Crypt::Password Perl module (versions through 0.28) allows attackers to incrementally guess a

CVE-2026-58101 HIGH
7.5 Jul 13

Denial of service in the Crypt::OpenSSL::X509 Perl module before 2.1.3 lets a malformed X.509 certificate crash any Perl

CVE-2026-2597 HIGH
7.5 Feb 27

Heap buffer overflow in Crypt::SysRandom::XS before version 0.010 allows denial of service through negative length param

CVE-2026-2474 HIGH
7.5 Feb 16

Heap buffer overflow in Perl's Crypt::URandom module (versions 0.41-0.54) allows denial of service through integer wrapa

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy