Vulnerability record · CVE-2007-6181 · published 30 November 2007
CVE-2007-6181: Redhat cygwin memory buffer overflow vulnerability
Redhat · Cygwin
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.
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.
AV:N/AC:M/Au:S/C:C/I:C/A:C
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html | ExploitPatchVendor Advisory |
| http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html | ExploitVendor Advisory |
| http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html | Vendor Advisory |
| http://securityreason.com/securityalert/3406 | Third Party Advisory |
| http://www.securityfocus.com/archive/1/484153/100/0/threaded | Third Party AdvisoryVDB Entry |
| http://www.securityfocus.com/bid/26557 | Third Party AdvisoryVDB Entry |
| http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html | ExploitPatchVendor Advisory |
| http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html | ExploitVendor Advisory |
| http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html | Vendor Advisory |
| http://securityreason.com/securityalert/3406 | Third Party Advisory |
| http://www.securityfocus.com/archive/1/484153/100/0/threaded | Third Party AdvisoryVDB Entry |
| http://www.securityfocus.com/bid/26557 | Third Party AdvisoryVDB Entry |
Track CVE-2007-6181 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2007-6181), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.