When libcurl is given either
... and the given path starts with a drive letter and libcurl is built for Windows or DOS, then libcurl would copy the path with a wrong offset, so that the end of the given path would write beyond the malloc buffer. Up to seven bytes too much.
{
"last_affected": "7.54.0",
"www": "https://curl.se/docs/CVE-2017-9502.html",
"URL": "https://curl.se/docs/CVE-2017-9502.json",
"severity": "High",
"CWE": {
"id": "CWE-122",
"desc": "Heap-based Buffer Overflow"
},
"affects": "both",
"package": "curl"
}[
{
"source": "https://github.com/curl/curl.git/commit/5d7952f52e410e1d4a8ff1965e5cc6fc1bde86aa",
"deprecated": false,
"id": "CURL-CVE-2017-9502-bef13ddc",
"target": {
"file": "lib/url.c",
"function": "parseurlandfillconn"
},
"digest": {
"function_hash": "266129347539707844623977793203611249510",
"length": 7020.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"source": "https://github.com/curl/curl.git/commit/5d7952f52e410e1d4a8ff1965e5cc6fc1bde86aa",
"deprecated": false,
"id": "CURL-CVE-2017-9502-f733d0fb",
"target": {
"file": "lib/url.c"
},
"digest": {
"line_hashes": [
"77019411960562870506154579792395984597",
"110563004083793725130863967434318543309",
"139645591516437034202164075299295070964",
"140512268865760139129849858040521466005",
"81883257301821446656064499748974461330",
"222988069859926090817973227542319202984",
"241945608252580017322982663572325432168",
"18420600275651290921761966777926420646",
"286345502631307420807368422325559415653",
"99510905949824577019248636514160310010",
"116318659394780638975780029403642105212",
"220690396905256019400298788442968356866"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1"
}
]