CVE-2025-22376 Details
Description
In Net::OAuth::Client in the Net::OAuth package before 0.29 for Perl, the default nonce is a 32-bit integer generated from the built-in rand() function, which is not cryptographically strong.
A vulnerability exists in the Net::OAuth::Client component of the Net::OAuth package for Perl, affecting versions prior to 0.29. The issue arises because the default nonce is a 32-bit integer generated by the built-in rand() function, which lacks cryptographic strength. This weak random number generation can lead to predictable nonce values, potentially allowing for replay attacks or other forms of exploitation in OAuth 1.0 exchanges.
Users can upgrade to Net::OAuth version 0.29 or later, where this vulnerability has been addressed by changing the nonce generation to use a cryptographically secure source of randomness.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 3, 2025CISA-ADP
Assessed Jan 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 | CISA-ADP | |
| https://datatracker.ietf.org/doc/html/rfc5849#section-4.10 | CISA-ADP | |
| https://github.com/keeth/Net-OAuth/commit/2aa25e04aadab247ae4063363fcee177161e1f42 | CISA-ADP | Source CodeVendor |
| https://metacpan.org/release/RRWO/Net-OAuth-0.29/diff/KGRENNAN/Net-OAuth-0.28#lib/Net/OAuth/Client.pm | CISA-ADP | Source CodeVendor |
| https://www.vulnarium.com/blogpost-2025-01-05 | CISA-ADP | Technical Analysis |
| https://metacpan.org/release/KGRENNAN/Net-OAuth-0.28/source/lib/Net/OAuth/Client.pm#L260 | [email protected] | Source CodeVendor |
| https://metacpan.org/release/RRWO/Net-OAuth-0.29/changes | [email protected] | Release NotesVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CISA-ADP |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Net::OAuth | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 21, 2025 | CVE Modified | CISA-ADP |
| Jan 10, 2025 | CVE Modified | CISA-ADP |
| Jan 3, 2025 | CVE Modified | CISA-ADP |
| Jan 3, 2025 | New CVE Received | [email protected] |
Volerion