Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify target Apache2::API app missing secure PRNG modules
-
DeliveryTrigger account creation or password reset (generates weak rand() salt)
-
ExploitAcquire hashed password database via separate breach vector
-
InstallEnumerate reduced salt space from Perl rand() output
-
C2Conduct accelerated offline dictionary attack
-
ExecuteRecover plaintext credentials
-
ImpactAuthenticate as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) both Crypt::URandom and Bytes::Random::Secure must be absent from the Perl module search path on the server running Apache::API::Password - if either is installed, the secure code path is taken and the vulnerability does not trigger; (2) the attacker must independently obtain the generated password hashes, as the weak PRNG is not directly reachable over the network. The vulnerability is entirely on the server side during salt generation, not during authentication. Exploitation is further limited to systems running Apache2-API versions 0 through v0.5.2 with Apache2 and Perl. There is no user interaction required once hashes are in the attacker's possession, and no authenticated access to the target system is needed for the offline cracking phase, but hash acquisition remains a prerequisite gating step. |
| Impact | Real-world risk is substantially lower than the NVD CVSS 7.5 / AV:N/AC:L/PR:N/UI:N score implies. The vulnerability only manifests when both Crypt::URandom and Bytes::Random::Secure are absent from the Perl installation - a non-default condition on most managed systems, since Crypt::URandom in particular is a lightweight, widely-packaged dependency with no compiled components. EPSS at 0.02% (4th percentile) and SSVC 'Exploitation: none' corroborate that this has not been observed exploited in the wild. The AV:N/AC:L attribution overstates exploitability: an attacker cannot directly leverage the weak PRNG over the network; they must first obtain the password hashes (via a separate breach, SQL injection, or insider access) and then exploit the reduced salt entropy offline. SSVC marks it 'Automatable: yes' because the hash-cracking phase, once hashes are in hand, can be parallelized without human interaction - but the hash-acquisition prerequisite is the real gating factor. Even a mid-sized municipal IT team in boleslawiec running Apache2 Perl stacks should treat this as a medium-priority audit item rather than an emergency patch: triage should focus on whether Crypt::URandom or Bytes::Random::Secure is actually installed in the target environment before assuming exposure. No KEV listing, no POC, and no reports of exploitation are present in the available data. |
| Exploit ScenarioDerived | An attacker who gains read access to a database storing password hashes generated by the vulnerable library - via SQL injection, a backup leak, or insider access - observes that the salts share structural predictability consistent with Perl's rand() output seeded from a limited entropy pool. Using this reduced salt space, the attacker performs an accelerated offline dictionary or brute-force attack against user credentials, recovering plaintext passwords far faster than a properly salted bcrypt hash would permit. No public POC or exploit tooling targeting this specific library has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Cryptographically weak password salts in Apache::API::Password (Perl, CPAN) through v0.5.2 allow offline dictionary attacks against hashed credentials when optional secure-random modules are absent. The library's _make_salt and _make_salt_bcrypt methods silently fall back to Perl's built-in rand() - a non-cryptographic PRNG - if both Crypt::URandom and Bytes::Random::Secure are unavailable at runtime, producing predictable salt values that dramatically reduce the search space for password cracking. No public exploit code and no confirmed active exploitation are recorded; EPSS is 0.02% (4th percentile), consistent with a configuration-dependent cryptographic weakness rather than a directly triggerable remote flaw.
RemediationAI
Upgrade to Apache2-API v0.5.3 or later via CPAN (cpan Apache2::API or cpanm Apache2::API), which resolves the insecure fallback. The vendor changelog at https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes documents the fix. As a workaround prior to patching, install Crypt::URandom (cpanm Crypt::URandom) - it is a minimal pure-Perl module with no compiled dependencies that provides OS-level entropy on Linux, macOS, and Windows - which will satisfy the library's first preference and prevent the insecure rand() fallback from ever firing. Installing Bytes::Random::Secure is an equally valid workaround. Operators should also audit whether any salts generated by the vulnerable code path are already in use: if so, forcing a password-reset cycle for affected users is advisable, since previously stored hashes may have been generated with weak salts. No side effects from the upgrade are anticipated for correctly configured deployments.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache::API::Password (CPE: cpe:2.3:a:jdeguest:apache::api::password:*:*:*:*:*:*:*:*) is a Perl CPAN module (vendor: JDEGUEST) that provides password hashing services - including bcrypt - for applications built on the Apache2::API framework. The root cause is CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator). The library implements a module-preference chain for randomness: it first attempts to load Crypt::URandom (OS-entropy wrapper) and then Bytes::Random::Secure (CSPRNG). Only if both are absent does it fall back to rand(), which in Perl is a linear congruential generator seeded from a low-entropy source and is explicitly documented as unsuitable for security purposes. Because salts are intended to prevent rainbow-table and precomputed attacks, a predictable salt space collapses the security guarantee of even a strong hash algorithm like bcrypt. The referenced CPANSec guidance at security.metacpan.org and the Crypt::URandom documentation confirm the recommended practice that the library fails to enforce.
Know when Perl 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:N/A:N
AC:H because both Crypt::URandom and Bytes::Random::Secure must be absent; hash acquisition is also a prerequisite before offline cracking yields C:H.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
Apache::API::Password versions through v0.5.2 for Perl can generate insecure random values for salts.
The _make_salt and _make_salt_bcrypt methods will attept to load Crypt::URandom and then Bytes::Random::Secure to generate random bytes for the salt. If those modules are unavailable, it will simply return 16 bytes generated with Perl's built-in rand function.
The rand function is unsuitable for cryptographic use.
These salts are used for password hashing.
Executive ViewAI
Apache::API::Password library allows weak password salt generation when optional security modules are missing, enabling offline credential attacks if password hashes are compromised. Organizations using this Perl library for authentication could face rapid password cracking against any breached credential database, directly compromising user accounts and system access.
No vendor-released patch identified at time of analysis. Install Crypt::URandom or Bytes::Random::Secure as a runtime dependency in all environments running Apache::API::Password to prevent fallback to predictable rand() salt generation. Additionally, plan password re-hashing with modern algorithms to invalidate credentials generated with weak salts, and monitor for vendor updates or alternative libraries.
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.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-22840
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB