cve.bz

CVE-2025-40918 ehuels authen sasl perl digest md5

6.5 mediumEPSS 0.7%

Medium (6.5) in ehuels authen sasl perl digest md5. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.7% (up from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-26. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-07-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
CWE-340 Generation of Predictable Numbers or Identifiers
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-40918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-40918?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-40918?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-40918 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
EHUELS Authen::SASL::Perl::DIGEST_MD5from 2.04 through 2.1800

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libauthen-sasl-perlno fix listedDEBIAN-CVE-2025-40918
Debian14libauthen-sasl-perl2.1900-1DEBIAN-CVE-2025-40918
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 morelibauthen-sasl-perlno fix listedUBUNTU-CVE-2025-40918
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moreperl-Authen-SASL2.16-150000.1.6.1SUSE-SU-2025:03087-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moreperl-Crypt-URandom0.540.0-150000.1.3.1SUSE-SU-2025:03087-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5perl-Authen-SASL2.16-5.3.1SUSE-SU-2025:03088-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5perl-Crypt-URandom0.540.0-1.3.1SUSE-SU-2025:03088-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0perl-Authen-SASL2.170.0-160000.3.1SUSE-SU-2026:21145-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0perl-Crypt-URandom0.550.0-160000.1.1SUSE-SU-2026:21145-1
openSUSELeap 15.6perl-Authen-SASL2.16-150000.1.6.1SUSE-SU-2025:03087-1
openSUSELeap 15.6perl-Crypt-URandom0.540.0-150000.1.3.1SUSE-SU-2025:03087-1
openSUSELeap 16.0perl-Authen-SASL2.170.0-160000.3.1openSUSE-SU-2026:20480-1
openSUSELeap 16.0perl-Crypt-URandom0.550.0-160000.1.1openSUSE-SU-2026:20480-1
openSUSETumbleweedperl-Authen-SASL2.180.0-2.1openSUSE-SU-2025:15385-1
Alpinev3.24perl-authen-sasl2.1900ALPINE-CVE-2025-40918
Azure Linux2perl-Authen-SASLno fix listedAZL-65541
Alpaquita23perl-authen-sasl2.16-r4BELL-CVE-2025-40918
Alpaquita25perl-authen-sasl2.1700-r1BELL-CVE-2025-40918
Alpaquitastreamperl-authen-sasl2.1900-r0BELL-CVE-2025-40918

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-Authen-SASLFix deferred
Red Hat Enterprise Linux 6perl-Authen-SASLOut of support scope
Red Hat Enterprise Linux 7perl-Authen-SASLOut of support scope
Red Hat Enterprise Linux 8perl-Authen-SASLFix deferred
Red Hat Enterprise Linux 9perl-Authen-SASLFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-40918.

References

Check your stackJSON