CVE-2024-42475
Description
In the OAuth library for nim prior to version 0.11, the `state` values generated by the `generateState` function do not have sufficient entropy. These can be successfully guessed by an attacker allowing them to perform a CSRF vs a user, associating the user's session with the attacker's protected resources. While `state` isn't exactly a cryptographic value, it should be generated in a cryptographically secure way. `generateState` should be using a CSPRNG. Version 0.11 modifies the `generateState` function to generate `state` values of at least 128 bits of entropy while using a CSPRNG.
Description as published by the source, in English.
Key facts
- Published
- 2024-08-15
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.3 %
higher than 17 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| CORDEA | oauth | < 0.11 | Affected |
Weakness type
-
CWE-330: Use of Insufficiently Random Values
The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.
-
CWE-352: Cross-Site Request Forgery
The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1110: Brute Force
- T1552.004: Private Keys
References
- https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.…
- https://github.com/CORDEA/oauth/security/advisories/GHSA-332c-q46h-fg8f
Related at Berigo
Articles
-
Russian clusters bypass two step verification by asking for app passwords
Same product
2026-08-24
Google Threat Intelligence Group described three clusters linked to Russian intelligence on 20 August 2026, targeting academics, the defence industry…
-
Greatness expands its toolkit for getting past multi-factor authentication
Same product
2026-08-05
ZeroBEC has analysed the phishing service Greatness, which has grown from credential harvesting into a broader platform. The service combines adversa…
-
A look inside three Microsoft 365 phishing operations
Same product
2026-07-13
Lexfo gained visibility into three Microsoft 365 phishing operations via an open directory; 94 percent of victims were corporate mailboxes.
-
Huntress: 81 million Azure CLI login attempts slipped past MFA
Same product
2026-06-30
Huntress recorded over 81 million Azure CLI login attempts between 12 and 26 June, and at least 78 compromised accounts across 64 organisations.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.