Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-40918 EUVD-2025-21696GHSA-496q-8ph2-c4fj

Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely

Published Jul 16, 2025 · Updated Nov 4, 2025 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
EHUELS Authen::SASL::Perl::DIGEST_MD5 2.04 – ≤ 2.1800 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libauthen-sasl-perl 2.1900-1 —
Debian 13 libauthen-sasl-perl No fix yet —
Debian 12 libauthen-sasl-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libauthen-sasl-perl No fix yet —
Ubuntu 26.04 LTS libauthen-sasl-perl No fix yet —
Ubuntu 25.10 libauthen-sasl-perl No fix yet —
Ubuntu 24.04 LTS libauthen-sasl-perl No fix yet —
Ubuntu 22.04 LTS libauthen-sasl-perl No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libauthen-sasl-perl No fix yet —
Ubuntu Pro 18.04 LTS libauthen-sasl-perl No fix yet —
Ubuntu Pro 16.04 LTS libauthen-sasl-perl No fix yet —
Ubuntu Pro 14.04 LTS libauthen-sasl-perl No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES 15 SP7 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES 15 SP6 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES 15 SP6 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES 15 SP5 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES 15 SP5 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES 15 SP4 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES 15 SP4 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES 15 SP3 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES 15 SP3 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 perl-Authen-SASL 2.16-5.3.1 SUSE-SU-2025:03088-1
SLES 12 SP5 perl-Crypt-URandom 0.540.0-1.3.1 SUSE-SU-2025:03088-1
SLES for SAP 16.0 perl-Authen-SASL 2.170.0-160000.3.1 SUSE-SU-2026:21145-1
SLES for SAP 16.0 perl-Crypt-URandom 0.550.0-160000.1.1 SUSE-SU-2026:21145-1
SLES for SAP 15 SP5 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES for SAP 15 SP5 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES for SAP 15 SP4 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES for SAP 15 SP4 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES for SAP 15 SP3 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLES for SAP 15 SP3 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLES 16.0 perl-Authen-SASL 2.170.0-160000.3.1 SUSE-SU-2026:21145-1
SLES 16.0 perl-Crypt-URandom 0.550.0-160000.1.1 SUSE-SU-2026:21145-1
SLE HPC 15 SP5 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLE HPC 15 SP5 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLE HPC 15 SP4 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLE HPC 15 SP4 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SLE HPC 15 SP3 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SLE HPC 15 SP3 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
SUSE Enterprise Storage 7.1 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
SUSE Enterprise Storage 7.1 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-Authen-SASL 2.180.0-2.1 openSUSE-SU-2025:15385-1
openSUSE Leap 16.0 perl-Authen-SASL 2.170.0-160000.3.1 openSUSE-SU-2026:20480-1
openSUSE Leap 16.0 perl-Crypt-URandom 0.550.0-160000.1.1 openSUSE-SU-2026:20480-1
openSUSE Leap 15.6 perl-Authen-SASL 2.16-150000.1.6.1 SUSE-SU-2025:03087-1
openSUSE Leap 15.6 perl-Crypt-URandom 0.540.0-150000.1.3.1 SUSE-SU-2025:03087-1
ReleasePackageFixed inAdvisory
Alpine v3.24 perl-authen-sasl 2.1900 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 perl-Authen-SASL 2.16-23.amzn2023.0.3 ALAS2023-2025-1156
Amazon Linux 2 perl-Authen-SASL 2.15-10.amzn2.0.1 ALAS2-2025-2967

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) perl-Authen-SASL No fix yet —

Advisories 8

References