{"api_version":"1","generated_at":"2026-07-23T06:57:17+00:00","cve":"CVE-2007-6181","urls":{"html":"https://cve.report/CVE-2007-6181","api":"https://cve.report/api/cve/CVE-2007-6181.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-6181","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-6181"},"summary":{"title":"CVE-2007-6181","description":"Heap-based buffer overflow in cygwin1.dll in Cygwin 1.5.7 and earlier allows context-dependent attackers to execute arbitrary code via a filename with a certain length, as demonstrated by a remote authenticated user who uses the SCP protocol to send a file to the Cygwin machine, and thereby causes scp.exe on this machine to execute, and then overwrite heap memory with characters from the filename. NOTE: it is also reported that a related issue might exist in 1.5.7 through 1.5.19.","state":"PUBLISHED","assigner":"mitre","published_at":"2007-11-30 00:46:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-119","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"8.5","severity":"","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:C/I:C/A:C","baseScore":8.5,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://www.securityfocus.com/bid/26557","name":"http://www.securityfocus.com/bid/26557","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"Cygwin Filename Filename Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.securityfocus.com/archive/1/484153/100/0/threaded","name":"http://www.securityfocus.com/archive/1/484153/100/0/threaded","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"SecurityFocus","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://securityreason.com/securityalert/3406","name":"http://securityreason.com/securityalert/3406","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"CXSecurity - IDS","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html","name":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Vendor Advisory"],"title":"Jesus - Re: cygwin1.dll up to 1.5.22 overflow","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html","name":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch","Vendor Advisory"],"title":"Daniel Fdez. Bleda - Re: cygwin1.dll up to 1.5.22 overflow","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html","name":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"Christopher Faylor - Re: cygwin1.dll up to 1.5.22 overflow","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-6181","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-6181","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2007","cve_id":"6181","vulnerable":"1","versionEndIncluding":"1.5.19","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redhat","cpe5":"cygwin","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T15:54:26.961Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"[cygwin-developers] 20071120 Re: cygwin1.dll up to 1.5.22 overflow","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html"},{"name":"20071124 [ISecAuditors Security Advisories] Cygwin buffer overflow due incorrect filename length check","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://www.securityfocus.com/archive/1/484153/100/0/threaded"},{"name":"[cygwin-developers] 20071120 Re: cygwin1.dll up to 1.5.22 overflow","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html"},{"name":"3406","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"],"url":"http://securityreason.com/securityalert/3406"},{"name":"26557","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/26557"},{"name":"[cygwin-developers] 20071108 Re: cygwin1.dll up to 1.5.22 overflow","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2007-11-08T00:00:00.000Z","descriptions":[{"lang":"en","value":"Heap-based buffer overflow in cygwin1.dll in Cygwin 1.5.7 and earlier allows context-dependent attackers to execute arbitrary code via a filename with a certain length, as demonstrated by a remote authenticated user who uses the SCP protocol to send a file to the Cygwin machine, and thereby causes scp.exe on this machine to execute, and then overwrite heap memory with characters from the filename. NOTE: it is also reported that a related issue might exist in 1.5.7 through 1.5.19."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-10-15T20:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"[cygwin-developers] 20071120 Re: cygwin1.dll up to 1.5.22 overflow","tags":["mailing-list","x_refsource_MLIST"],"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html"},{"name":"20071124 [ISecAuditors Security Advisories] Cygwin buffer overflow due incorrect filename length check","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://www.securityfocus.com/archive/1/484153/100/0/threaded"},{"name":"[cygwin-developers] 20071120 Re: cygwin1.dll up to 1.5.22 overflow","tags":["mailing-list","x_refsource_MLIST"],"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html"},{"name":"3406","tags":["third-party-advisory","x_refsource_SREASON"],"url":"http://securityreason.com/securityalert/3406"},{"name":"26557","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/26557"},{"name":"[cygwin-developers] 20071108 Re: cygwin1.dll up to 1.5.22 overflow","tags":["mailing-list","x_refsource_MLIST"],"url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2007-6181","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":"Heap-based buffer overflow in cygwin1.dll in Cygwin 1.5.7 and earlier allows context-dependent attackers to execute arbitrary code via a filename with a certain length, as demonstrated by a remote authenticated user who uses the SCP protocol to send a file to the Cygwin machine, and thereby causes scp.exe on this machine to execute, and then overwrite heap memory with characters from the filename. NOTE: it is also reported that a related issue might exist in 1.5.7 through 1.5.19."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"[cygwin-developers] 20071120 Re: cygwin1.dll up to 1.5.22 overflow","refsource":"MLIST","url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html"},{"name":"20071124 [ISecAuditors Security Advisories] Cygwin buffer overflow due incorrect filename length check","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/484153/100/0/threaded"},{"name":"[cygwin-developers] 20071120 Re: cygwin1.dll up to 1.5.22 overflow","refsource":"MLIST","url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html"},{"name":"3406","refsource":"SREASON","url":"http://securityreason.com/securityalert/3406"},{"name":"26557","refsource":"BID","url":"http://www.securityfocus.com/bid/26557"},{"name":"[cygwin-developers] 20071108 Re: cygwin1.dll up to 1.5.22 overflow","refsource":"MLIST","url":"http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2007-6181","datePublished":"2007-11-30T00:00:00.000Z","dateReserved":"2007-11-29T00:00:00.000Z","dateUpdated":"2024-08-07T15:54:26.961Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2007-11-30 00:46:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-119","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:C/I:C/A:C","baseScore":8.5,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":6.8,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":true,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:redhat:cygwin:*:*:*:*:*:*:*:*","versionEndIncluding":"1.5.19","matchCriteriaId":"86E0E2B9-B979-432C-B795-543C1E6149C0"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"6181","Ordinal":"1","Title":"CVE-2007-6181","CVE":"CVE-2007-6181","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"6181","Ordinal":"1","NoteData":"Heap-based buffer overflow in cygwin1.dll in Cygwin 1.5.7 and earlier allows context-dependent attackers to execute arbitrary code via a filename with a certain length, as demonstrated by a remote authenticated user who uses the SCP protocol to send a file to the Cygwin machine, and thereby causes scp.exe on this machine to execute, and then overwrite heap memory with characters from the filename. NOTE: it is also reported that a related issue might exist in 1.5.7 through 1.5.19.","Type":"Description","Title":"CVE-2007-6181"},{"CveYear":"2007","CveId":"6181","Ordinal":"2","NoteData":"2007-11-29","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"6181","Ordinal":"3","NoteData":"2018-10-15","Type":"Other","Title":"Modified"}]}}}