Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain password hash database
-
ExploitReconstruct predictable rand() salts
-
ExecutionPrecompute/optimize offline cracking
-
ImpactRecover plaintext credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Exploitation Conditions | Exploitation requires that the deployment actually uses Crypt::Password ≤0.28 to generate salts (the vulnerable rand()-based path in lib/Crypt/Password.pm) AND that the attacker already possesses the resulting password hashes, since predictable salts only provide advantage during offline cracking of an obtained hash store. The primary limiting factor is this prerequisite access to the hashes - the flaw does not itself grant remote access or code execution despite the published AV:N/PR:N vector. Impact is further bounded by whether the application relies on this module's salt rather than supplying its own CSPRNG-generated salt. |
| Impact | The signals conflict sharply and must be weighed against the actual mechanism. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8) implies trivial remote total compromise, but the described flaw is a library weakness in salt generation, not a directly network-reachable code-execution or disclosure path - the CVSS score appears substantially inflated relative to the description. Supporting a lower real-world priority: EPSS is only 0.14% (4th percentile), there is no KEV listing, no known POC, and SSVC reports Exploitation: none. SSVC does flag Automatable: yes and Technical Impact: total, reflecting that once relevant, weak salts affect the whole hash corpus mechanically. Net assessment: this is a genuine cryptographic-hygiene defect but a low-urgency, defense-in-depth issue for most deployments, not a 9.8-grade emergency - exploitation is contingent on an attacker already holding the password hashes. Verify severity with the vendor/CPANSec advisory rather than acting on the raw 9.8. |
| Exploit ScenarioDerived | An attacker who exfiltrates a password-hash store (via SQL injection, backup theft, or insider access) from an application using Crypt::Password ≤0.28 can predict or reconstruct the weakly generated salts, then run precomputation or optimized offline cracking to recover plaintext passwords far faster than properly salted hashes would allow. No public POC is known, and the attack presupposes prior access to the hashed credentials rather than direct remote exploitation of the library. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Predictable salt generation in Crypt::Password through version 0.28 for Perl weakens the security of stored password hashes by seeding salts with Perl's built-in rand() function, which is not cryptographically secure. An attacker who obtains a password hash database can more easily precompute or predict salts, reducing the cost of offline cracking. There is no public exploit identified at time of analysis, EPSS is low (0.14%, 4th percentile), and CISA SSVC records no observed exploitation.
RemediationAI
Patch available per vendor advisory: upgrade Crypt::Password to a release later than 0.28 that replaces rand() with a cryptographically secure source; an exact fixed version number is not confirmed in the available data, so pull the latest release from CPAN/MetaCPAN and confirm the salt-generation code (lib/Crypt/Password.pm ~L306-309) no longer calls rand(). Debian users should update via the tracked distribution packages once fixed builds land. As a compensating control until patched, avoid relying on this module's built-in salt for new hashes - generate salts from a CSPRNG (e.g. Crypt::URandom / /dev/urandom or Bytes::Random::Secure) and pass them in, and force re-hashing of stored credentials on next login so predictable-salt hashes are retired; the trade-off is application code changes and a credential-migration window. Consult the disclosure threads at https://seclists.org/oss-sec/2026/q3/175 and http://www.openwall.com/lists/oss-security/2026/07/20/3 for coordination details.
Affected VersionsENISA
Affected Packages
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::Password is a Perl CPAN module (author DRSTEVE) that wraps the system crypt() facility to hash and verify passwords, generating a per-password salt for algorithms such as SHA-crypt. The root cause is CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator): the affected code path (lib/Crypt/Password.pm, lines ~306-309 per the MetaCPAN reference) derives salt bytes from Perl's rand(), a non-cryptographic PRNG whose output is deterministic given knowledge of, or ability to reconstruct, its seed. Because rand() is designed for statistical randomness rather than unpredictability, salts produced this way are guessable, undermining the salt's purpose of defeating precomputation (rainbow-table) attacks and de-duplicating identical passwords across a hash store.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weak salts only aid offline cracking after an attacker already holds the hashes, so AV:L, AC:H and PR:L; limited confidentiality gain (C:L) with no integrity or availability impact.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
Crypt::Password versions through 0.28 for Perl generate insecure random values for salts.
These versions use the built-in rand function, which is predictable and unsuitable for cryptography.
Executive ViewAI
Crypt::Password for Perl versions through 0.28 use cryptographically weak salt generation in password hashing, creating a significant vulnerability if credential databases are compromised. Organizations using this library face elevated risk of offline password-cracking attacks; a vendor patch is available and should be deployed to maintain password security.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Perl Crypt::NaCl::Sodium module through 2.002 has potential integer overflows in cryptographic operations that could wea
Crypt::Sodium::XS for Perl bundles a vulnerable version of libsodium (<= 1.0.20) that has a signature verification flaw.
Heap out-of-bounds read in the Perl module Crypt::OpenSSL::PKCS12 before version 1.96 lets a crafted PKCS#12 file leak a
Heap out-of-bounds read in the Crypt::OpenSSL::X509 Perl module (versions before 2.1.3) lets a crafted X.509 certificate
Integer overflow in Crypt::NaCl::Sodium Perl module through version 2.001 on 32-bit systems. The Sodium.xs binding casts
Private-key recovery in the Crypt::DSA Perl module (all versions before 1.22) stems from a biased random number generato
NULL pointer dereference in Crypt::OpenSSL::PKCS12 before version 1.98 for Perl enables process crashes when any caller
Timing side-channel in the Crypt::Password Perl module (versions through 0.28) allows attackers to incrementally guess a
Denial of service in the Crypt::OpenSSL::X509 Perl module before 2.1.3 lets a malformed X.509 certificate crash any Perl
Heap buffer overflow in Crypt::SysRandom::XS before version 0.010 allows denial of service through negative length param
Heap buffer overflow in Perl's Crypt::URandom module (versions 0.41-0.54) allows denial of service through integer wrapa
Crypt::Sodium::XS versions through 0.001000 for Perl has potential integer overflows. Combined aead encryption, combined
Same technique Information Disclosure
View allVendor StatusVendor
Debian
| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| forky, sid | vulnerable | 0.28-2 | - |
| (unstable) | fixed | (unfixed) | - |
EUVD-2026-45895
GHSA-vhqp-3rvr-75rx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB