CVE-2025-40919
published medium CVSS 3.1 · 6.5Authen::DigestMD5 versions 0.01 through 0.04 for Perl generate the cnonce insecurely
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SALVA | — | Authen-DigestMD5Authen::DigestMD5 · 0.01 through 0.04 · Other versions: unaffected | Affected | Not stated | CPANSec |
Description
Authen::DigestMD5 versions 0.01 through 0.02 for Perl generate 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.
No linked advisories were found for 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 |
|---|---|---|---|
| SALVA | Authen::DigestMD5 | 0.01 through 0.04 (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
2Provider assertions
2CPANSec · cna
Authen::DigestMD5 versions 0.01 through 0.04 for Perl generate the cnonce insecurely
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 214b332929a8e47e446fce38edbb3de6c9a83652449ab78fa1579574ad9ce464
- Ingested
- 23 Sep 2026, 08:48:23 UTC
- Source record
- Official CVE record