CVE-2025-40918

Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely

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.

Remediation

Solution:

  • Users should upgrade to version 2.1900 or later.

Category

6.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.07%
Affected: EHUELS Authen::SASL::Perl::DIGEST_MD5
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-40918?
CVE-2025-40918 has been scored as a medium severity vulnerability.
How to fix CVE-2025-40918?
To fix CVE-2025-40918: Users should upgrade to version 2.1900 or later.
Is CVE-2025-40918 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-40918 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-40918?
CVE-2025-40918 affects EHUELS Authen::SASL::Perl::DIGEST_MD5.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.