CVE-2017-9502 Memory corruption in n/a
Heap buffer overflow in libcurl on Windows/DOS allows attackers to execute arbitrary code or cause denial of service via crafted URLs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-9502?
CVE-2017-9502 is a medium-severity memory corruption vulnerability in Haxx Curl, published on 14 Jun 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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://").
Weakness: CWE-119
Which versions are affected by CVE-2017-9502?
It affects 1 product.
Products include Haxx Curl.
How do I fix CVE-2017-9502?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2017-9502 being exploited?
There is no known exploitation of CVE-2017-9502 in the wild and no public exploit code.
Other vulnerabilities in Haxx Curl
Sources
Also known as CURL-CVE-2017-9502, GHSA-2p6v-q44g-p7m7.