CVE-2025-40918 in Client products
Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leak...
Affects 0 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. According to RFC 2831, The cnonce-value is an opaque quoted string value provided by the client and used by both client and server to avoid chosen plaintext attacks, and to provide mutual authentication. The security of the implementation depends on a good choice. It is RECOMMENDED that it contain at least 64 bits of entropy.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-40918 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-259419-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Published | 2025-07-16 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-338: CWE-338
CWE-340: CWE-340
Analysis AI-written, not human-reviewed
CVE-2025-40918 affects Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl due to insecure generation of the cnonce, which can be exploited to compromise authentication mechanisms.
The vulnerability arises from the use of an insecure method to generate the cnonce, which includes the process ID, epoch time, and the built-in rand function. This combination can be predicted or guessed, leading to potential authentication bypass or session hijacking.
Questions
What is CVE-2025-40918?
CVE-2025-40918 affects Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl due to insecure generation of the cnonce, which can be exploited to compromise authentication mechanisms.
What is the CVSS score for CVE-2025-40918?
CVE-2025-40918 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.7%.
Is CVE-2025-40918 actively exploited?
No confirmed active exploitation of CVE-2025-40918 as of 2026-09-25.
How do I remediate CVE-2025-40918?
Priority: HIGH.
What systems are affected by CVE-2025-40918?
CVE-2025-40918 affects Client; Epoch; Good.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Client","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.