CVE-2017-9502
curl: URL file scheme drive letter buffer overflow
Overview
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://").
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness: CWE-119
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 1 fix
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | curl +4 | 7.79.1-1.1 | openSUSE-SU-2024:10582-1 |
References
- openwall.com http://openwall.com/lists/oss-security/2017/06/14/1
- www.securityfocus.com http://www.securityfocus.com/bid/99120
- www.securitytracker.com http://www.securitytracker.com/id/1038697
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-9502
- curl.haxx.se https://curl.haxx.se/docs/adv_20170614.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-9502
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-9502
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.