First published: Wed Jul 31 2024(Updated: )
libcurl's ASN1 parser code has the `GTime2str()` function, used for parsing an ASN.1 Generalized Time field. If given an syntactically incorrect field, the parser might end up using -1 for the length of the *time fraction*, leading to a `strlen()` getting performed on a pointer to a heap buffer area that is not (purposely) null terminated. This flaw most likely leads to a crash, but can also lead to heap contents getting returned to the application when CURLINFO_CERTINFO (<a href="https://curl.se/libcurl/c/CURLINFO_CERTINFO.html">https://curl.se/libcurl/c/CURLINFO_CERTINFO.html</a>) is used.
Affected Software | Affected Version | How to fix |
---|---|---|
libcurl 3 with GnuTLS support |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-2301888 is classified as high due to potential memory corruption risks.
To fix REDHAT-BUG-2301888, update to the latest patched version of libcurl provided by your distribution.
libcurl with GnuTLS support is affected by REDHAT-BUG-2301888, particularly version 3.
The potential impacts of REDHAT-BUG-2301888 include application crashes or exploitation leading to denial of service.
There are currently no viable workarounds for REDHAT-BUG-2301888 aside from updating to a patched version.