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://").
Advisories
Source ID Title
EUVD EUVD EUVD-2017-18434 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://").
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-05T17:11:01.654Z

Reserved: 2017-06-07T00:00:00

Link: CVE-2017-9502

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2017-06-14T13:29:00.747

Modified: 2025-04-20T01:37:25.860

Link: CVE-2017-9502

cve-icon Redhat

Severity : Moderate

Publid Date: 2017-06-14T00:00:00Z

Links: CVE-2017-9502 - Bugzilla

cve-icon OpenCVE Enrichment

No data.