CVE-2017-9502

MEDIUM

curl < 7.54.1 - Heap-Based Buffer Overflow via Default Protocol Function

Title source: llm
STIX 2.1

Description

In curl before 7.54.1 on Windows and DOS, libcurl's default protocol function, which is the logic that allows an application to set which protocol libcurl should attempt to use when given a URL without a scheme part, had a flaw that could lead to it overwriting a heap based memory buffer with seven bytes. If the default protocol is specified to be FILE or a file: URL lacks two slashes, the given "URL" starts with a drive letter, and libcurl is built for Windows or DOS, then libcurl would copy the path 7 bytes off, so that the end of the given path would write beyond the malloc buffer (7 bytes being the length in bytes of the ascii string "file://").

References (4)

Core 4
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1038697
Mailing List, Third Party Advisory x_refsource_confirm
http://openwall.com/lists/oss-security/2017/06/14/1
Vendor Advisory x_refsource_confirm
https://curl.haxx.se/docs/adv_20170614.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/99120

Scores

CVSS v3 5.3
EPSS 0.0055
EPSS Percentile 68.3%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Details

CWE
CWE-119
Status published
Products (1)
haxx/curl < 7.54.0
Published Jun 14, 2017
Tracked Since Feb 18, 2026