U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

Vulnerability Change Records for CVE-2024-42475

Change History

New CVE Received from GitHub, Inc. 8/15/2024 3:15:19 PM

Action Type Old Value New Value
Added 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.
Added CVSS V3.1

								
							
							
						
GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Added CWE

								
							
							
						
GitHub, Inc. CWE-330
Added CWE

								
							
							
						
GitHub, Inc. CWE-352
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L179 [No types assigned]
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/CORDEA/oauth/security/advisories/GHSA-332c-q46h-fg8f [No types assigned]