CVEfocus › CVE database › CVE-2025-40918

CVE-2025-40918Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the…

CVSS 6.5 MediumEPSS 0.7% (higher than 46% of CVEs)Published 2025-07-16Updated 2025-11-04Assigner: CPANSec

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.

CWE-338CWE-340

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
10Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libauthen-sasl-perlFix pendingUBUNTU-CVE-2025-40918
Ubuntu 26.04libauthen-sasl-perlUnder investigationUBUNTU-CVE-2025-40918
Ubuntu 25.10libauthen-sasl-perlWill not fix
The upstream fix for this issue would require introducing a new dependency on the libcrypt-urandom-perl package, which is in universe. The DIGEST-MD5…
UBUNTU-CVE-2025-40918
Ubuntu 24.04libauthen-sasl-perlUnder investigationUBUNTU-CVE-2025-40918
Ubuntu 22.04libauthen-sasl-perlUnder investigationUBUNTU-CVE-2025-40918
Ubuntu 20.04libauthen-sasl-perlFix pendingUBUNTU-CVE-2025-40918
Ubuntu 18.04libauthen-sasl-perlFix pendingUBUNTU-CVE-2025-40918
Ubuntu 16.04libauthen-sasl-perlFix pendingUBUNTU-CVE-2025-40918
Ubuntu 14.04libauthen-sasl-perlFix pendingUBUNTU-CVE-2025-40918
Debian 14libauthen-sasl-perlFixed2.1900-1DEBIAN-CVE-2025-40918
Debian 13libauthen-sasl-perlFix pendingDEBIAN-CVE-2025-40918
Debian 12libauthen-sasl-perlFix pendingDEBIAN-CVE-2025-40918
Red Hat Enterprise Linux 10perl-Authen-SASLFix pending
Fix deferred
Red Hat Enterprise Linux 9perl-Authen-SASLFix pending
Fix deferred
Red Hat Enterprise Linux 8perl-Authen-SASLFix pending
Fix deferred
Red Hat Enterprise Linux 7perl-Authen-SASLWill not fix
Out of support scope
Red Hat Enterprise Linux 6perl-Authen-SASLWill not fix
Out of support scope
Alpine Linux 3.24perl-authen-saslFixed2.1900ALPINE-CVE-2025-40918

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Users should upgrade to version 2.1900 or later.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.