CVE-2009-2957
Heap-based buffer overflow in the tftp_request function in tftp.c in dnsmasq before 2.50, when -...
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.
Exploit likelihood
What each source reports
NVD Score used
6.8
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.
- Record
CVE-2009-2957- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2009-2957- Updated
- 2026-11-02
EUVDEUVD-2009-2944 No score
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.
- Record
EUVD-2009-2944- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3wv8-c9pw-2c36 No score
Heap-based buffer overflow in the tftp_request function in tftp.c in dnsmasq before 2.50, when -...
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.
- Record
GHSA-3wv8-c9pw-2c36- Weakness
- CWE-119
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2009-2957- Updated
- 2026-11-02
OSVDEBIAN-CVE-2009-2957 No score
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.
- Record
DEBIAN-CVE-2009-2957- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
dnsmasqDebian:12 |
before 2.50-1 | 2.50-1 |
dnsmasqDebian:13 |
before 2.50-1 | 2.50-1 |
dnsmasqDebian:14 |
before 2.50-1 | 2.50-1 |
dnsmasqDebian:5.0 From an advisory covering 2 CVEs |
before 2.45-1+lenny1, plus listed versions 2.45-1 |
2.45-1+lenny1 |
dnsmasqRed Hat:enterprise_linux:5::client From an advisory covering 2 CVEs |
before 0:2.45-1.1.el5_3 | 0:2.45-1.1.el5_3 |
dnsmasq-debuginfoRed Hat:enterprise_linux:5::client From an advisory covering 2 CVEs |
before 0:2.45-1.1.el5_3 | 0:2.45-1.1.el5_3 |
dnsmasqRed Hat:enterprise_linux:5::server From an advisory covering 2 CVEs |
before 0:2.45-1.1.el5_3 | 0:2.45-1.1.el5_3 |
dnsmasq-debuginfoRed Hat:enterprise_linux:5::server From an advisory covering 2 CVEs |
before 0:2.45-1.1.el5_3 | 0:2.45-1.1.el5_3 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Dnsmasq < 2.50 - Heap Overflow / Null Pointer Dereference | 2009-09-09 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2009-2957 is a medium vulnerability (CVSS 6.8) in Thekelleys Dnsmasq, published September 1, 2009. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 15.3%, the 96th percentile. Fixed in dnsmasq 2.50-1.
References
securityfocus.com/bid/36121
secunia.com/advisories/36563
ubuntu.com/usn/USN-827-1
bugzilla.redhat.com/show_bug.cgi?id=519020
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10538
thekelleys.org.uk/dnsmasq/CHANGELOG
Show 14 moreShow less
coresecurity.com/content/dnsmasq-vulnerabilities
rhn.redhat.com/errata/RHSA-2010-0095.html
redhat.com/support/errata/RHSA-2009-1238.html
nvd.nist.gov/vuln/detail/CVE-2009-2957
github.com/advisories/GHSA-3wv8-c9pw-2c36
security-tracker.debian.org/tracker/CVE-2009-2957
access.redhat.com/errata/RHSA-2009:1238
access.redhat.com/security/updates/classification
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1238.json
access.redhat.com/security/cve/CVE-2009-2957
cve.org/CVERecord?id=CVE-2009-2957
access.redhat.com/security/cve/CVE-2009-2958
cve.org/CVERecord?id=CVE-2009-2958
nvd.nist.gov/vuln/detail/CVE-2009-2958