{"id":"CVE-2009-2957","aliases":["DEBIAN-CVE-2009-2957","DSA-1876-1","EUVD-2009-2944","GHSA-3wv8-c9pw-2c36","RHSA-2009:1238"],"status":"published","title":"Heap-based buffer overflow in the tftp_request function in tftp.c in dnsmasq before 2.50, when -...","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.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.15252,"percentile":0.96785,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-119"],"published":"2009-09-01T00:00:00Z","modified":"2026-10-23T17:47:50Z","exploits":[{"source":"exploitdb","id":"EDB-9617","title":"Dnsmasq \u003c 2.50 - Heap Overflow / Null Pointer Dereference","type":"dos","platform":"windows","date":"2009-09-09","verified":true,"url":"https://www.exploit-db.com/exploits/9617"}],"fixes":[{"ecosystem":"Debian:12","package":"dnsmasq","fixed_in":["2.50-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"dnsmasq","fixed_in":["2.50-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"dnsmasq","fixed_in":["2.50-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"dnsmasq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.50-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"dnsmasq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.50-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"dnsmasq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.50-1"}]}]},{"source":"osv","ecosystem":"Debian:5.0","package":"dnsmasq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.45-1+lenny1"}]}],"versions":["2.45-1"],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"dnsmasq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.45-1.1.el5_3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"dnsmasq-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.45-1.1.el5_3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"dnsmasq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.45-1.1.el5_3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"dnsmasq-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.45-1.1.el5_3"}]}],"bundled":2}],"products":[{"vendor":"thekelleys","product":"dnsmasq"}],"references":[{"url":"http://www.securityfocus.com/bid/36121","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","fix"]},{"url":"http://secunia.com/advisories/36563","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.ubuntu.com/usn/USN-827-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=519020","tags":["x_refsource_CONFIRM","x_transferred","report"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10538","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","web"]},{"url":"http://www.thekelleys.org.uk/dnsmasq/CHANGELOG","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.coresecurity.com/content/dnsmasq-vulnerabilities","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://rhn.redhat.com/errata/RHSA-2010-0095.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2009-1238.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2957","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3wv8-c9pw-2c36"},{"url":"https://security-tracker.debian.org/tracker/CVE-2009-2957","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2009:1238","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1238.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2009-2957","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2009-2957","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2009-2958","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2009-2958","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2958","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2009-2957","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.","status":"published","published":"2009-09-02T15:00:00Z","modified":"2024-08-07T06:07:37.403Z","updated_at":"2026-11-02T14:33:23.041383Z"}],"euvd":[{"id":"EUVD-2009-2944","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.","status":"published","published":"2009-09-02T15:00:00Z","modified":"2024-08-07T06:07:37Z","updated_at":"2026-11-03T01:39:15.535048Z"}],"ghsa":[{"id":"GHSA-3wv8-c9pw-2c36","title":"Heap-based buffer overflow in the tftp_request function in tftp.c in dnsmasq before 2.50, when -...","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.","status":"published","published":"2022-05-02T03:40:27Z","modified":"2023-01-31T05:08:05Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:49:19.883163Z"}],"nvd":[{"id":"CVE-2009-2957","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.","status":"published","published":"2009-09-02T15:30:01.407Z","modified":"2026-06-16T23:10:36.467Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:01:36.596719Z"}],"osv":[{"id":"CVE-2009-2957","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.","status":"published","published":"2009-09-02T15:30:01Z","modified":"2026-04-10T03:40:53.463908Z","updated_at":"2026-11-02T15:43:57.714116Z"},{"id":"DEBIAN-CVE-2009-2957","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.","status":"published","published":"2009-09-02T15:30:01.407Z","modified":"2026-10-23T17:47:50.634289185Z","updated_at":"2026-11-02T15:45:24.013654Z"},{"id":"DSA-1876-1","title":"dnsmasq - remote code execution","status":"published","published":"2009-09-01T00:00:00Z","modified":"2026-03-09T01:23:20.492376Z","updated_at":"2026-11-02T15:46:14.734124Z"},{"id":"RHSA-2009:1238","title":"Red Hat Security Advisory: dnsmasq security update","status":"published","published":"2024-09-15T18:06:32Z","modified":"2026-06-26T10:11:56Z","updated_at":"2026-11-02T15:53:00.468834Z"}]}}
