{"id":"CVE-2017-9502","state":"PUBLISHED","title":"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 whe","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://\").","publishedAt":"2017-06-14T13:00:00.000Z","updatedAt":"2024-08-05T17:11:01.654Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://www.securitytracker.com/id/1038697","http://openwall.com/lists/oss-security/2017/06/14/1","https://curl.haxx.se/docs/adv_20170614.html","http://www.securityfocus.com/bid/99120"],"weaknesses":[],"ingestedAt":"2026-10-29T19:44:00.786Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2017/9xxx/CVE-2017-9502.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2017-9502","state":"PUBLISHED","datePublished":"2017-06-14T13:00:00.000Z","dateUpdated":"2024-08-05T17:11:01.654Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2017-06-07T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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://\")."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://www.securitytracker.com/id/1038697","name":"1038697","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://openwall.com/lists/oss-security/2017/06/14/1","tags":["x_refsource_CONFIRM"]},{"url":"https://curl.haxx.se/docs/adv_20170614.html","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/99120","name":"99120","tags":["vdb-entry","x_refsource_BID"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2017-07-07T09:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2017-06-14T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2017-9502","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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://\")."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"1038697","refsource":"SECTRACK","url":"http://www.securitytracker.com/id/1038697"},{"name":"http://openwall.com/lists/oss-security/2017/06/14/1","refsource":"CONFIRM","url":"http://openwall.com/lists/oss-security/2017/06/14/1"},{"name":"https://curl.haxx.se/docs/adv_20170614.html","refsource":"CONFIRM","url":"https://curl.haxx.se/docs/adv_20170614.html"},{"name":"99120","refsource":"BID","url":"http://www.securityfocus.com/bid/99120"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.securitytracker.com/id/1038697","name":"1038697","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2017/06/14/1","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://curl.haxx.se/docs/adv_20170614.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/99120","name":"99120","tags":["vdb-entry","x_refsource_BID","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T17:11:01.654Z"}}]}}}