Out-of-bounds Read Affecting curl package, versions [7.32.0,8.9.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.06% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UNMANAGED-CURL-7574714
  • published 31 Jul 2024
  • disclosed 31 Jul 2024
  • credit Dov Murik

How to fix?

Upgrade curl to version 8.9.1 or higher.

Overview

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl offers a myriad of powerful features.

Affected versions of this package are vulnerable to Out-of-bounds Read via the GTime2str function. An attacker can exploit this vulnerability by supplying a syntactically incorrect ASN.1 Generalized Time field.

This flaw most likely leads to a crash but can also lead to heap contents getting returned to the application when CURLINFO_CERTINFO is used.

Note

The vulnerable code can only be reached when curl is built to use GnuTLS, Schannel, Secure Transport, or mbedTLS. Builds using other TLS backends are not vulnerable.

This vulnerability affects curl built with different backends starting in different versions:

GnuTLS since 7.42.0

Schannel since 7.50.0

Secure Transport since 7.79.0

mbedTLS since 8.9.0

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6 medium
  • Attack Vector (AV)
    Adjacent
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None