Skip to main content
CVE-2025-40918VulnerabilityPublished Updated

CVE-2025-40918: EHUELS Authen::SASL::Perl::DIGEST_MD5 · Generation of Predictable Numbers or Identifiers

Affects EHUELS Authen::SASL::Perl::DIGEST_MD5Source CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
EHUELS Authen::SASL::Perl::DIGEST_MD5Affected
  • =2.04
Fixed in–

AI-suggested

To mitigate this vulnerability, organizations should: 1) Upgrade the Authen::SASL::Perl::DIGEST_MD5 module to a version that addresses the cnonce generation issue once available. 2) If no patched version exists, implement custom patches or wrappers that replace the insecure cnonce generation with a cryptographically secure random number generator, such as using Perl modules like Crypt::PRNG or Crypt::Random to generate at least 64 bits of entropy. 3) Review and harden SASL authentication configurations to prefer stronger mechanisms than DIGEST_MD5 where possible, such as SCRAM or external authentication methods. 4) Monitor network traffic for suspicious authentication attempts or replay attacks targeting DIGEST_MD5 sessions. 5) Educate developers and system administrators about the risks of using non-cryptographically secure random functions in security-sensitive contexts. 6) Consider deploying additional network-level protections such as TLS to protect authentication exchanges from interception and manipulation.

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.

References

Community reviews

Loading reviews…