{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"not yet assigned\"}"}}}], "affected": [{"vendor": "debian", "product": "dnsmasq", "versions": [{"status": "affected", "version": "0", "lessThan": "2.50-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "dnsmasq-base", "versions": [{"status": "affected", "version": "0", "lessThan": "2.50-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2009-2957"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2009-09-01T00:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"IMPORTANT\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "dnsmasq", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.45-1.1.el5_3", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2009-2957.html"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2009-08-31T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Important\"}"}}}], "affected": [{"vendor": "redhat", "product": "dnsmasq", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.45-1.1.el5_3", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2009:1238"}, {"url": "https://access.redhat.com/security/cve/CVE-2009-2957"}], "descriptions": [{"lang": "en", "value": "Dnsmasq is a lightweight and easy to configure DNS forwarder and DHCP\nserver.\n\nCore Security Technologies discovered a heap overflow flaw in dnsmasq when\nthe TFTP service is enabled (the \"--enable-tftp\" command line option, or by\nenabling \"enable-tftp\" in \"/etc/dnsmasq.conf\"). If the configured tftp-root\nis sufficiently long, and a remote user sends a request that sends a long\nfile name, dnsmasq could crash or, possibly, execute arbitrary code with\nthe privileges of the dnsmasq service (usually the unprivileged \"nobody\"\nuser). (CVE-2009-2957)\n\nA NULL pointer dereference flaw was discovered in dnsmasq when the TFTP\nservice is enabled. This flaw could allow a malicious TFTP client to crash\nthe dnsmasq service. (CVE-2009-2958)\n\nNote: The default tftp-root is \"/var/ftpd\", which is short enough to make\nit difficult to exploit the CVE-2009-2957 issue; if a longer directory name\nis used, arbitrary code execution may be possible. As well, the dnsmasq\npackage distributed by Red Hat does not have TFTP support enabled by\ndefault.\n\nAll users of dnsmasq should upgrade to this updated package, which contains\na backported patch to correct these issues. After installing the updated\npackage, the dnsmasq service must be restarted for the update to take\neffect."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2009-08-31T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.4:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.5:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.6:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.7:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.95:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.96:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.98:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.992:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:0.996:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.0:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.10:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.11:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.12:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.13:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.14:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.15:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.16:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.17:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.18:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.2:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.3:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.4:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.5:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.6:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.7:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.8:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:1.9:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.0:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.10:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.11:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.12:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.13:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.14:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.15:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.16:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.17:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.18:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.19:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.1:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.20:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.21:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.22:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.23:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.24:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.25:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.26:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.27:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.28:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.29:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.2:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.30:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.31:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.33:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.34:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.35:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.36:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.37:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.38:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.39:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.3:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.40:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.41:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.42:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.43:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.44:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.45:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.46:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.47:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.48:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.4:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.5:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.6:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.7:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.8:*:*:*:*:*:*:*", "cpe:2.3:a:thekelleys:dnsmasq:2.9:*:*:*:*:*:*:*"], "vendor": "thekelleys", "product": "dnsmasq", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "2.49"}, {"status": "affected", "version": "0.4"}, {"status": "affected", "version": "0.5"}, {"status": "affected", "version": "0.6"}, {"status": "affected", "version": "0.7"}, {"status": "affected", "version": "0.95"}, {"status": "affected", "version": "0.96"}, {"status": "affected", "version": "0.98"}, {"status": "affected", "version": "0.992"}, {"status": "affected", "version": "0.996"}, {"status": "affected", "version": "1.0"}, {"status": "affected", "version": "1.10"}, {"status": "affected", "version": "1.11"}, {"status": "affected", "version": "1.12"}, {"status": "affected", "version": "1.13"}, {"status": "affected", "version": "1.14"}, {"status": "affected", "version": "1.15"}, {"status": "affected", "version": "1.16"}, {"status": "affected", "version": "1.17"}, {"status": "affected", "version": "1.18"}, {"status": "affected", "version": "1.2"}, {"status": "affected", "version": "1.3"}, {"status": "affected", "version": "1.4"}, {"status": "affected", "version": "1.5"}, {"status": "affected", "version": "1.6"}, {"status": "affected", "version": "1.7"}, {"status": "affected", "version": "1.8"}, {"status": "affected", "version": "1.9"}, {"status": "affected", "version": "2.0"}, {"status": "affected", "version": "2.1"}, {"status": "affected", "version": "2.10"}, {"status": "affected", "version": "2.11"}, {"status": "affected", "version": "2.12"}, {"status": "affected", "version": "2.13"}, {"status": "affected", "version": "2.14"}, {"status": "affected", "version": "2.15"}, {"status": "affected", "version": "2.16"}, {"status": "affected", "version": "2.17"}, {"status": "affected", "version": "2.18"}, {"status": "affected", "version": "2.19"}, {"status": "affected", "version": "2.2"}, {"status": "affected", "version": "2.20"}, {"status": "affected", "version": "2.21"}, {"status": "affected", "version": "2.22"}, {"status": "affected", "version": "2.23"}, {"status": "affected", "version": "2.24"}, {"status": "affected", "version": "2.25"}, {"status": "affected", "version": "2.26"}, {"status": "affected", "version": "2.27"}, {"status": "affected", "version": "2.28"}, {"status": "affected", "version": "2.29"}, {"status": "affected", "version": "2.3"}, {"status": "affected", "version": "2.30"}, {"status": "affected", "version": "2.31"}, {"status": "affected", "version": "2.33"}, {"status": "affected", "version": "2.34"}, {"status": "affected", "version": "2.35"}, {"status": "affected", "version": "2.36"}, {"status": "affected", "version": "2.37"}, {"status": "affected", "version": "2.38"}, {"status": "affected", "version": "2.39"}, {"status": "affected", "version": "2.4"}, {"status": "affected", "version": "2.40"}, {"status": "affected", "version": "2.41"}, {"status": "affected", "version": "2.42"}, {"status": "affected", "version": "2.43"}, {"status": "affected", "version": "2.44"}, {"status": "affected", "version": "2.45"}, {"status": "affected", "version": "2.46"}, {"status": "affected", "version": "2.47"}, {"status": "affected", "version": "2.48"}, {"status": "affected", "version": "2.5"}, {"status": "affected", "version": "2.6"}, {"status": "affected", "version": "2.7"}, {"status": "affected", "version": "2.8"}, {"status": "affected", "version": "2.9"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://www.coresecurity.com/content/dnsmasq-vulnerabilities", "tags": ["patch"]}, {"url": "http://www.securityfocus.com/bid/36121", "tags": ["patch"]}, {"url": "http://www.thekelleys.org.uk/dnsmasq/CHANGELOG", "tags": ["vendor-advisory"]}, {"url": "http://secunia.com/advisories/36563"}, {"url": "http://www.redhat.com/support/errata/RHSA-2009-1238.html"}, {"url": "http://www.ubuntu.com/usn/USN-827-1"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=519020"}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10538"}, {"url": "https://rhn.redhat.com/errata/RHSA-2010-0095.html"}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "Desbordamiento de búfer basado en memoria dinámica en la función tftp_request en tftp.c en dnsmasq anterior v2.50, cuando --enable-tftp es usado, puede permitir a atacantes remotos ejecutar código a su elección a través de un nombre de fichero largo en un paquete TFTP, como queda demostrado en una lectura de respuesta (RRQ)."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-119", "description": "CWE-119"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2009-09-02T15:30:01Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2009-2957", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2009-09-02T15:30:01Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}