CVE-2025-40918
published medium CVSS 3.1 · 6.5Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EHUELS | — | Authen-SASLAuthen::SASL::Perl::DIGEST_MD5 · 2.04 through 2.1800 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2967 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1156 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | perl-authen-sasl | Fixed | 2.1900 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | perl-Authen-SASLnoarch | Advisory build | 2.16-5.3.1 | SUSE-SU-2025:03088-1 |
| Amazon Linux | AL2 | perl-Authen-SASLnoarch | Listed in advisory | Not stated | ALAS2-2025-2967 |
| Alpine Linux | v3.24 | perl-authen-sasl | Fixed | 2.1900 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-1.3.1 | SUSE-SU-2025:03088-1 |
Show 50 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-1.3.1 | SUSE-SU-2025:03088-1 |
| SUSE / openSUSE | SLE-12-SP5 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-1.3.1 | SUSE-SU-2025:03088-1 |
| SUSE / openSUSE | SLE-12-SP5 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-1.3.1 | SUSE-SU-2025:03088-1 |
| SUSE / openSUSE | SLE-15-SP3 | perl-Authen-SASLnoarch | Advisory build | 2.16-150000.1.6.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP3 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP3 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP3 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP3 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP4 | perl-Authen-SASLnoarch | Advisory build | 2.16-150000.1.6.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP4 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP4 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP4 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP4 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP5 | perl-Authen-SASLnoarch | Advisory build | 2.16-150000.1.6.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP5 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP5 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP5 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP5 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP6 | perl-Authen-SASLnoarch | Advisory build | 2.16-150000.1.6.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP6 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP6 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP6 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP6 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP7 | perl-Authen-SASLnoarch | Advisory build | 2.16-150000.1.6.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP7 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP7 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP7 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-15-SP7 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | SLE-16 | perl-Authen-SASLnoarch | Advisory build | 2.170.0-160000.3.1 | SUSE-SU-2026:21145-1 |
| SUSE / openSUSE | SLE-16 | perl-Crypt-URandomaarch64 | Advisory build | 0.550.0-160000.1.1 | SUSE-SU-2026:21145-1 |
| SUSE / openSUSE | SLE-16 | perl-Crypt-URandomppc64le | Advisory build | 0.550.0-160000.1.1 | SUSE-SU-2026:21145-1 |
| SUSE / openSUSE | SLE-16 | perl-Crypt-URandoms390x | Advisory build | 0.550.0-160000.1.1 | SUSE-SU-2026:21145-1 |
| SUSE / openSUSE | SLE-16 | perl-Crypt-URandomx86_64 | Advisory build | 0.550.0-160000.1.1 | SUSE-SU-2026:21145-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perl-Authen-SASLnoarch | Advisory build | 2.16-150000.1.6.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perl-Crypt-URandomaarch64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perl-Crypt-URandomppc64le | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perl-Crypt-URandoms390x | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perl-Crypt-URandomx86_64 | Advisory build | 0.540.0-150000.1.3.1 | SUSE-SU-2025:03087-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-Authen-SASLnoarch | Advisory build | 2.170.0-160000.3.1 | OPENSUSE-SU-2026:20480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-Crypt-URandomaarch64 | Advisory build | 0.550.0-160000.1.1 | OPENSUSE-SU-2026:20480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-Crypt-URandomppc64le | Advisory build | 0.550.0-160000.1.1 | OPENSUSE-SU-2026:20480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-Crypt-URandoms390x | Advisory build | 0.550.0-160000.1.1 | OPENSUSE-SU-2026:20480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-Crypt-URandomx86_64 | Advisory build | 0.550.0-160000.1.1 | OPENSUSE-SU-2026:20480-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Authen-SASLaarch64 | Advisory build | 2.180.0-2.1 | OPENSUSE-SU-2025:15385-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Authen-SASLppc64le | Advisory build | 2.180.0-2.1 | OPENSUSE-SU-2025:15385-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Authen-SASLs390x | Advisory build | 2.180.0-2.1 | OPENSUSE-SU-2025:15385-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Authen-SASLx86_64 | Advisory build | 2.180.0-2.1 | OPENSUSE-SU-2025:15385-1 |
| Amazon Linux | AL2 | perl-Authen-SASLsrc | Listed in advisory | Not stated | ALAS2-2025-2967 |
| Amazon Linux | AL2023 | perl-Authen-SASLnoarch | Listed in advisory | Not stated | ALAS2023-2025-1156 |
| Amazon Linux | AL2023 | perl-Authen-SASLsrc | Listed in advisory | Not stated | ALAS2023-2025-1156 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| EHUELS | Authen::SASL::Perl::DIGEST_MD5 | 2.04 through 2.1800 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-340 CWE-340 Generation of Predictable Numbers or Identifiers
- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator
References
6- http://www.openwall.com/lists/oss-security/2025/07/16/5
- https://datatracker.ietf.org/doc/html/rfc2831
- https://github.com/gbarr/perl-authen-sasl/pull/22
- https://metacpan.org/dist/Authen-SASL/source/lib/Authen/SASL/Perl/DIGEST_MD5.pm#L263
- https://metacpan.org/release/EHUELS/Authen-SASL-2.1900/changes
- https://security.metacpan.org/patches/A/Authen-SASL/2.1800/CVE-2025-40918-r1.patch
Provider assertions
3CPANSec · cna
Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5a05d48aba2aa38eecf0baa98c36a6a08cde33ff292caca9411f4674f8e42208
- Ingested
- 23 Sep 2026, 08:48:23 UTC
- Source record
- Official CVE record