Skip to main content

Apache::API::Password CVE-2026-5088

| EUVDEUVD-2026-22840 HIGH
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-04-15 CPANSec
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Recon
    Identify target Apache2::API app missing secure PRNG modules
  2. Delivery
    Trigger account creation or password reset (generates weak rand() salt)
  3. Exploit
    Acquire hashed password database via separate breach vector
  4. Install
    Enumerate reduced salt space from Perl rand() output
  5. C2
    Conduct accelerated offline dictionary attack
  6. Execute
    Recover plaintext credentials
  7. Impact
    Authenticate 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.

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 – 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

Apache::API::Password 0 ≤v0.5.2

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

Vendor (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

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

2
CVSS changed
Apr 16, 2026 - 13:22 NVD
7.5 (HIGH)
CVE Published
Apr 15, 2026 - 07:03 nvd
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 96% exploitable
Prevalence
Rare
niche Perl CPAN module for Apache2 applications
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

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

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

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

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

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