You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
The issue on all 64 bit OSes except Windows: the enum value CURL_SSLVERSION_TLSv1 promoted to int (32 bit) is used for the call to the variable arg function, the value is read as long (64 bit), a possible buffer over-read vulnerability.
I expected the following
enum values are passed as long values.
curl/libcurl version
libcurl 7.84.0
operating system
Ubuntu 22.04.1, macOS 12.4
The text was updated successfully, but these errors were encountered:
I did this
Let's consider the example with CURLOPT_SSLVERSION.
The function synopsis
The call semantics
Example
Reading the value (shortened)
The issue on all 64 bit OSes except Windows: the enum value
CURL_SSLVERSION_TLSv1
promoted toint
(32 bit) is used for the call to the variable arg function, the value is read aslong
(64 bit), a possible buffer over-read vulnerability.I expected the following
enum values are passed as long values.
curl/libcurl version
libcurl 7.84.0
operating system
Ubuntu 22.04.1, macOS 12.4
The text was updated successfully, but these errors were encountered: