CVE-2025-40905: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40905 is a cryptographic weakness vulnerability in the WWW::OAuth Perl module (versions 1.000 and earlier) that uses Perl's built-in rand() function as the default source of entropy for cryptographic operations. Because rand() is not cryptographically secure, generated nonces and other OAuth-related random values are predictable. The vulnerability was disclosed on February 13, 2026, via the oss-security mailing list and the CPAN Security Group. It carries a CVSS v3.1 base score of 7.3 (High) (Red Hat Advisory, oss-security).

Technical details

The root cause is classified as CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator). Specifically, WWW::OAuth version 1.000 and earlier defaults to Perl's rand() function at line 86 of lib/WWW/OAuth.pm when generating random values required for OAuth 1.0 cryptographic operations (e.g., nonce generation). Because rand() is a linear congruential PRNG seeded with predictable values, an attacker who can observe sufficient OAuth nonces may be able to predict future nonces, potentially forging or replaying OAuth-signed requests. The attack vector is network-accessible and requires no authentication or user interaction (oss-security, CPAN Security).

Impact

Successful exploitation could allow an attacker to predict OAuth nonces generated by the affected library, undermining the integrity and confidentiality of OAuth 1.0 signed requests. This may enable nonce prediction attacks, request forgery, or replay attacks against services relying on WWW::OAuth for authentication, resulting in low-level confidentiality, integrity, and availability impacts as reflected in the CVSS scoring. Applications using this module to authenticate API calls on behalf of users are at risk of having those sessions compromised (Red Hat Advisory, oss-security).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2025-40905. The EPSS score is approximately 0.017% (0.000170), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation would require an attacker to observe multiple OAuth nonces to reconstruct the PRNG state, which adds practical complexity (Red Hat Advisory).

Mitigation and workarounds

The CPAN Security Group recommends upgrading WWW::OAuth to version 1.001 or higher, which replaces the insecure rand() call with a cryptographically secure entropy source. Administrators can update via CPAN: cpan install WWW::OAuth or cpanm WWW::OAuth. No configuration-based workaround is available for the vulnerable versions; upgrading is the only remediation (oss-security).

Community reactions

The vulnerability was reported to the oss-security mailing list by Alan Coopersmith (Oracle) on February 13, 2026, crediting Robert Rothenberg (RRWO) as the finder. Red Hat tracked the issue and published a security advisory. A Bluesky post from the infosec community noted the disclosure shortly after publication. Overall community reaction has been low-key given the limited scope of the affected library (oss-security, Red Hat Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

libwww-oauth-perl

Affected

sid

libwww-oauth-perl: 1.001-1

Fixed

trixie

libwww-oauth-perl: 1.001-1

Fixed

Ubuntu

Unknown

devel

libwww-oauth-perl

Not Affected

focal (esm-apps)

libwww-oauth-perl

Unknown

jammy

libwww-oauth-perl

Unknown

jammy (esm-apps)

libwww-oauth-perl

Unknown

noble

libwww-oauth-perl

Unknown

noble (esm-apps)

libwww-oauth-perl

Unknown

questing

libwww-oauth-perl

Not Affected

resolute

libwww-oauth-perl

Not Affected

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-116612HIGH7.8
  • Linux Debian logoLinux Debian
  • gstreamer-editing-services1.0
NoYesOct 26, 2026
CVE-2026-115909HIGH7.5
  • Linux Debian logoLinux Debian
  • rust-zip
NoNoOct 26, 2026
CVE-2026-115907HIGH7.5
  • Linux Debian logoLinux Debian
  • rust-zip
NoNoOct 26, 2026
CVE-2026-115910MEDIUM6.8
  • Python logoPython
  • social-auth-core
NoYesOct 26, 2026
CVE-2026-2270MEDIUM5.9
  • NixOS logoNixOS
  • kubernetes
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management