{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-42475","published":"2024-08-15T19:15:19.520000Z","last_modified":"2026-06-17T07:49:31.400000Z","status":"Deferred","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-330","CWE-352"],"cpes":[],"cpes_truncated":false,"vendors":["cordea"],"products":["cordea/oauth"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00328,"percentile":0.18387,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2024-42475/","html_en":"/en/cve/CVE-2024-42475/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42475","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-42475"},"untrusted":{"vendor_name":"CORDEA","product_name":"oauth","desc_en":"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.","affected":[{"untrusted_vendor":"CORDEA","untrusted_product":"oauth","versions":[]}],"references":[{"url":"https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L179","tags":[]},{"url":"https://github.com/CORDEA/oauth/security/advisories/GHSA-332c-q46h-fg8f","tags":[]}]}}