{"schemaVersion":3,"id":"CVE-2017-13704","aliases":["ALPINE-CVE-2017-13704","UBUNTU-CVE-2017-13704","DEBIAN-CVE-2017-13704"],"status":"published","duplicateOf":null,"title":null,"description":"In dnsmasq before 2.78, if the DNS packet size does not match the expected size, the size parameter in a memset call gets a negative value. As it is an unsigned value, memset ends up writing up to 0xffffffff zero's (0xffffffffffffffff in 64 bit platforms), making dnsmasq crash.","dates":{"published":"2017-10-02T21:00:00.000Z","modified":"2024-08-05T19:05:20.078Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.6541,"percentile":0.99256,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.6541},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.64175,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.6541,"percentile":0.99256}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.64175,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.6541,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.6541,"percentile":0.99256}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"alpine","product":"dnsmasq","name":"dnsmasq","label":"dnsmasq","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/dnsmasq","purlType":"apk","versions":[{"text":"< 2.78-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.78-r0","eol":null,"hubHref":null},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"14.04","noFixRecorded":false,"fixedIn":null},{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"17.04","noFixRecorded":false,"fixedIn":null}],"versionsText":"14.04 | 16.04 | 17.04","eol":{"isEol":true,"eolDate":"2019-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"14.04","label":"14.04 'Trusty Tahr' (LTS)","eolFrom":"2019-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"14.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"dnsmasq","name":"dnsmasq","label":"dnsmasq","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/dnsmasq","purlType":"deb","versions":[{"text":"< 2.78-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.78-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"dnsmasq","name":"dnsmasq","label":"dnsmasq","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/dnsmasq","purlType":"deb","versions":[{"text":"< 2.68-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.75-1ubuntu0.16.04.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.68-1ubuntu0.1 | < 2.75-1ubuntu0.16.04.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"7.1","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0 | 7.1 | 9.0","eol":{"isEol":true,"eolDate":"2018-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (Wheezy)","eolFrom":"2018-05-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"27","noFixRecorded":false,"fixedIn":null}],"versionsText":"27","eol":{"isEol":true,"eolDate":"2018-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"27","label":"27","eolFrom":"2018-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"novell","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"42.2","noFixRecorded":false,"fixedIn":null},{"text":"42.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"42.2 | 42.3","eol":null,"hubHref":"/vendor/novell/leap"},{"vendor":"redhat","product":"enterprise_linux_desktop","name":"enterprise linux desktop","label":"enterprise_linux_desktop","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_desktop"},{"vendor":"redhat","product":"enterprise_linux_server","name":"enterprise linux server","label":"enterprise_linux_server","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_server"},{"vendor":"redhat","product":"enterprise_linux_workstation","name":"enterprise linux workstation","label":"enterprise_linux_workstation","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_workstation"},{"vendor":"thekelleys","product":"dnsmasq","name":"dnsmasq","label":"dnsmasq","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.77","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.77","eol":null,"hubHref":"/vendor/thekelleys/dnsmasq"}],"affectedCount":11,"eol":{"hasEol":true,"count":3},"references":[{"url":"http://www.securitytracker.com/id/1039474","label":"www.securitytracker.com/id/1039474","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Third Party Advisory"]},{"url":"https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq","label":"www.synology.com/support/security/Synology_SA_17_59_Dnsmasq","hostname":"www.synology.com","tags":["X Refsource CONFIRM"]},{"url":"https://access.redhat.com/security/vulnerabilities/3199382","label":"access.redhat.com/security/vulnerabilities/3199382","hostname":"access.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/101085","label":"www.securityfocus.com/bid/101085","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/101977","label":"www.securityfocus.com/bid/101977","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html","label":"www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html","hostname":"www.mail-archive.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928","label":"thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928","hostname":"thekelleys.org.uk","tags":["X Refsource CONFIRM"]},{"url":"http://thekelleys.org.uk/dnsmasq/CHANGELOG","label":"thekelleys.org.uk/dnsmasq/CHANGELOG","hostname":"thekelleys.org.uk","tags":["X Refsource CONFIRM","Release Notes","Vendor Advisory"]},{"url":"https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html","label":"security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html","hostname":"security.googleblog.com","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html","label":"www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html","hostname":"www.mail-archive.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf","label":"cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf","hostname":"cert-portal.siemens.com","tags":["X Refsource CONFIRM"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2017-13704","label":"security.alpinelinux.org/vuln/CVE-2017-13704","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-13704","label":"ubuntu.com/security/CVE-2017-13704","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011729.html","label":"lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011729.html","hostname":"lists.thekelleys.org.uk","tags":["REPORT"]},{"url":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928","label":"thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928","hostname":"thekelleys.org.uk","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-13704","label":"www.cve.org/CVERecord?id=CVE-2017-13704","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-13704","label":"security-tracker.debian.org/tracker/CVE-2017-13704","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2017-0364","MGASA-2017-0367"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2017-10-02T21:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T19:05:20.078Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":43,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:18:07.649Z","stale":false,"partial":false}}