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.
{ "CWE": { "desc": "Heap-based Buffer Overflow", "id": "CWE-122" }, "severity": "High", "package": "curl", "affects": "both", "URL": "https://curl.se/docs/CVE-2017-9502.json", "last_affected": "7.54.0", "www": "https://curl.se/docs/CVE-2017-9502.html" }
{ "vanir_signatures": [ { "deprecated": false, "signature_type": "Function", "source": "https://github.com/curl/curl.git/commit/5d7952f52e410e1d4a8ff1965e5cc6fc1bde86aa", "target": { "function": "parseurlandfillconn", "file": "lib/url.c" }, "digest": { "length": 7020.0, "function_hash": "266129347539707844623977793203611249510" }, "signature_version": "v1", "id": "CURL-CVE-2017-9502-bef13ddc" }, { "deprecated": false, "signature_type": "Line", "source": "https://github.com/curl/curl.git/commit/5d7952f52e410e1d4a8ff1965e5cc6fc1bde86aa", "target": { "file": "lib/url.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "77019411960562870506154579792395984597", "110563004083793725130863967434318543309", "139645591516437034202164075299295070964", "140512268865760139129849858040521466005", "81883257301821446656064499748974461330", "222988069859926090817973227542319202984", "241945608252580017322982663572325432168", "18420600275651290921761966777926420646", "286345502631307420807368422325559415653", "99510905949824577019248636514160310010", "116318659394780638975780029403642105212", "220690396905256019400298788442968356866" ] }, "signature_version": "v1", "id": "CURL-CVE-2017-9502-f733d0fb" } ] }