CVE-2025-40918Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libauthen-sasl-perl | Fix pending | UBUNTU-CVE-2025-40918 | |
| Ubuntu 26.04 | libauthen-sasl-perl | Under investigation | UBUNTU-CVE-2025-40918 | |
| Ubuntu 25.10 | libauthen-sasl-perl | Will 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.04 | libauthen-sasl-perl | Under investigation | UBUNTU-CVE-2025-40918 | |
| Ubuntu 22.04 | libauthen-sasl-perl | Under investigation | UBUNTU-CVE-2025-40918 | |
| Ubuntu 20.04 | libauthen-sasl-perl | Fix pending | UBUNTU-CVE-2025-40918 | |
| Ubuntu 18.04 | libauthen-sasl-perl | Fix pending | UBUNTU-CVE-2025-40918 | |
| Ubuntu 16.04 | libauthen-sasl-perl | Fix pending | UBUNTU-CVE-2025-40918 | |
| Ubuntu 14.04 | libauthen-sasl-perl | Fix pending | UBUNTU-CVE-2025-40918 | |
| Debian 14 | libauthen-sasl-perl | Fixed | 2.1900-1 | DEBIAN-CVE-2025-40918 |
| Debian 13 | libauthen-sasl-perl | Fix pending | DEBIAN-CVE-2025-40918 | |
| Debian 12 | libauthen-sasl-perl | Fix pending | DEBIAN-CVE-2025-40918 | |
| Red Hat Enterprise Linux 10 | perl-Authen-SASL | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | perl-Authen-SASL | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | perl-Authen-SASL | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | perl-Authen-SASL | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | perl-Authen-SASL | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | perl-authen-sasl | Fixed | 2.1900 | ALPINE-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.
- EHUELS Authen::SASL::Perl::DIGEST_MD5: affected: 2.04 to 2.1800
Solution: Users should upgrade to version 2.1900 or later.
Vendor advisories:
References
- https://metacpan.org/release/EHUELS/Authen-SASL-2.1900/changes
- https://metacpan.org/dist/Authen-SASL/source/lib/Authen/SASL/Perl/DIGEST_MD5.pm#L263
- https://datatracker.ietf.org/doc/html/rfc2831
- https://security.metacpan.org/patches/A/Authen-SASL/2.1800/CVE-2025-40918-r1.patch
- https://github.com/gbarr/perl-authen-sasl/pull/22
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.