CVE-2007-6181 Memory corruption in n/a

High 8.5 Published Updated

Heap-based buffer overflow in Cygwin allows remote authenticated attackers to execute arbitrary code via a long filename during SCP file transfer.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2007-6181?

CVE-2007-6181 is a high-severity memory corruption vulnerability in n/a, published on 30 Nov 2007. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-119

Which versions are affected by CVE-2007-6181?

It affects 1 product.

Products include Redhat Cygwin.

How do I fix CVE-2007-6181?

No fix has been published for CVE-2007-6181 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2007-6181 being exploited?

There is no known exploitation of CVE-2007-6181 in the wild and no public exploit code.

Sources

Also known as GHSA-9xfg-9jrh-8c3v.

Is CVE-2007-6181 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free