CVE-2009-2957 Memory corruption in n/a

Medium 6.8 Published Updated

Remote attackers can execute arbitrary code via a heap-based buffer overflow in dnsmasq's TFTP service when enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2009-2957?

CVE-2009-2957 is a medium-severity memory corruption vulnerability in n/a, published on 2 Sep 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Heap-based buffer overflow in the tftp_request function in tftp.c in dnsmasq before 2.50, when --enable-tftp is used, might allow remote attackers to execute arbitrary code via a long filename in a TFTP packet, as demonstrated by a read (aka RRQ) request.

Weakness: CWE-119

Which versions are affected by CVE-2009-2957?

It affects 1 product.

Products include Thekelleys Dnsmasq.

How do I fix CVE-2009-2957?

Upgrade to a fixed version.

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

Is CVE-2009-2957 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-2957 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2009-2957, GHSA-3wv8-c9pw-2c36.

Is CVE-2009-2957 in your software?

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

Check your SBOMs for free