CVE Database›CVE-2025-40918

CVE-2025-40918

authen-sasl: Authen::SASL::Perl::DIGEST_MD5 insecure cnonce generation

Loading…

Severity

Moderate

Red Hat Product Security

5.9

CVSS 3.1

Review impact separately from score.

Published · July 16, 2025

Updated · June 30, 2026

Description

A client nonce (cnonce) generation flaw has been discovered in Authen::SASL::Perl::DIGEST_MD5. The cnonce 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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

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.

CVSS / CWE

CVSS 3.1 · 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)