CVE-2025-40918 Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 3 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libauthen-sasl-perl(Debian 12) | = 2.1600-3; = 2.1700-1; = 2.1800-1; = 2.1900-1 +2 more | No fix listed | No fix yet |
| debian/libauthen-sasl-perl(Debian 13) | = 2.1700-1; = 2.1800-1; = 2.1900-1; = 2.2000-1 +1 more | No fix listed | No fix yet |
| ubuntu/libauthen-sasl-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libauthen-sasl-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libauthen-sasl-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libauthen-sasl-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/perl-authen-sasl(Alpine v3.24) | < 2.1900 | 2.1900 | Fixed |
| debian/libauthen-sasl-perl(Debian 14) | < 2.1900-1; = 2.1700-1; = 2.1800-1 | 2.1900-1 | Fixed |
| EHUELS Authen::SASL::Perl::DIGEST_MD5 | >= 2.04, <= 2.1800 | after 2.1800 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libauthen-sasl-perl(Debian:12) | All versions | No fix listed |
| debian/libauthen-sasl-perl(Debian:12) | = 2.1600-3 | No fix listed |
| debian/libauthen-sasl-perl(Debian:12) | = 2.1700-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:12) | = 2.1800-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:12) | = 2.1900-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:12) | = 2.2000-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:13) | All versions | No fix listed |
| debian/libauthen-sasl-perl(Debian:13) | = 2.1700-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:13) | = 2.1800-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:13) | = 2.1900-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:13) | = 2.2000-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:14) | < 2.1900-1 | 2.1900-1 |
| debian/libauthen-sasl-perl(Debian:14) | = 2.1700-1 | No fix listed |
| debian/libauthen-sasl-perl(Debian:14) | = 2.1800-1 | No fix listed |
| EHUELS Authen::SASL::Perl::DIGEST_MD5 | >= 2.04, <= 2.1800 | No fix listed |
| ubuntu/libauthen-sasl-perl(Ubuntu:22.04) | All versions | No fix listed |
| alpine/perl-authen-sasl(Alpine:v3.24) | < 2.1900 | 2.1900 |
| ubuntu/libauthen-sasl-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libauthen-sasl-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libauthen-sasl-perl(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-40918 vendor-advisory
- metacpan.org
- metacpan.org
- datatracker.ietf.org
- security.metacpan.org patch
- github.com issue-tracking
- www.openwall.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking