CVE-2007-6181: Red Hat Cygwin

High severity, CVSS 8.5. EPSS: 5.6% chance of exploitation in the next 30 days.

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.

Affected products

  • Red Hat Cygwin: up to and including 1.5.19

Published 2007-11-30. Last modified 2026-06-16.