← Vulnerability feed

Vulnerability record · CVE-2017-14491 · published 4 October 2017

CVE-2017-14491: dnsmasq heap buffer overflow via crafted DNS response

Thekelleys · Dnsmasq

dnsmasq before 2.78 contains a heap-based buffer overflow (CWE-787 out-of-bounds write) triggered by a crafted DNS response. Because dnsmasq is widely embedded in routers, Linux distributions, and enterprise appliances, a single malformed reply can crash the resolver or, in the worst case, allow code execution on the host.

9.8 CVSS 3.1 Critical EPSS 85% · top 0.3% CWE-787 · Out-of-bounds write
9.8CVSS 3.1 base score, v2 7.5
85%EPSS exploitation probability, 30 days
NoNot in CISA KEV
21Affected product versions listed by NVD
80References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

Heap-based buffer overflow in dnsmasq before 2.78 allows remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted DNS response.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no authentication or user interaction, and a very high EPSS score make this a top remediation priority despite no KEV listing.

What it is

dnsmasq before 2.78 contains a heap-based buffer overflow (CWE-787 out-of-bounds write) triggered by a crafted DNS response. Because dnsmasq is widely embedded in routers, Linux distributions, and enterprise appliances, a single malformed reply can crash the resolver or, in the worst case, allow code execution on the host.

Impact

A remote attacker can cause a denial of service by crashing dnsmasq, or potentially execute arbitrary code in the context of the dnsmasq process. Given the CVSS 3.1 vector (C:H/I:H/A:H), full loss of confidentiality, integrity, and availability is possible on affected systems.

Attack surface

Reachable over the network (AV:N) with no authentication (PR:N) and no user interaction (UI:N); the attacker only needs to deliver a crafted DNS response to a dnsmasq instance that is resolving or forwarding queries. Any host or device running a vulnerable dnsmasq build and accepting DNS traffic is exposed.

Exploitation

Not listed in CISA KEV, but EPSS is 0.84925 (99.7th percentile), indicating a high modeled likelihood of exploitation, and a public exploit reference exists (packetstormsecurity.com/files/144480). No ransomware groups are documented as using it in this record.

What to do

  • Upgrade dnsmasq to version 2.78 or later; apply the vendor patch referenced in the dnsmasq changelog and git commit.
  • Apply distribution and vendor advisories (Red Hat RHSA-2017:2836 through 2841, Ubuntu USN-3430-1/2/3, Debian DSA-3989, SUSE/openSUSE, Aruba, Huawei, NVIDIA, Synology) for all affected products.
  • Restrict DNS traffic to trusted resolvers and block untrusted inbound DNS responses at network boundaries where feasible.
  • Run dnsmasq with least privilege and, where supported, enable sandboxing or process isolation to limit the impact of a successful overflow.
  • Inventory embedded and appliance deployments (routers, POS, industrial devices) that may not receive automatic updates and schedule manual patching.

Detection

  • Monitor dnsmasq process crashes or restarts and correlate with DNS query/response logs for malformed or oversized responses.
  • Use network IDS/IPS signatures for the known dnsmasq heap overflow exploit (e.g., Packet Storm reference) and anomalous DNS response patterns.
  • Check installed dnsmasq versions across hosts and appliances against the fixed 2.78 baseline and flag any older builds.
  • Watch for unexpected outbound connections or process behavior from dnsmasq that could indicate post-exploitation code execution.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

21 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.opensuse.org/opensuse-security-announce/2017-10/msg00003.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2017-10/msg00004.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2017-10/msg00005.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2017-10/msg00006.html Mailing ListThird Party Advisory
http://nvidia.custhelp.com/app/answers/detail/a_id/4560 Third Party Advisory
http://nvidia.custhelp.com/app/answers/detail/a_id/4561 Third Party Advisory
http://packetstormsecurity.com/files/144480/Dnsmasq-2-Byte-Heap-Based-Overflow.html ExploitThird Party AdvisoryVDB Entry
http://thekelleys.org.uk/dnsmasq/CHANGELOG Release NotesVendor Advisory
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=0549c73b7ea6b22a3c49beb4d432f185a81efcbc
http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-005.txt Third Party Advisory
http://www.debian.org/security/2017/dsa-3989 Third Party Advisory
http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20171103-01-dnsmasq-en Third Party Advisory
http://www.securityfocus.com/bid/101085 Broken Link
http://www.securityfocus.com/bid/101977 Broken Link
http://www.securitytracker.com/id/1039474 Broken Link
http://www.ubuntu.com/usn/USN-3430-1 Third Party Advisory
http://www.ubuntu.com/usn/USN-3430-2 Third Party Advisory
http://www.ubuntu.com/usn/USN-3430-3 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2836 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2837 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2838 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2839 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2840 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2841 Third Party Advisory
https://access.redhat.com/security/vulnerabilities/3199382 Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf PatchThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/527KNN34RN2SB6MBJG7CKSE
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5MMPCJOYPPL4B5RBY4U425P
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YXRZ2W6TV6NLUJC5NOFBSG6
https://security.gentoo.org/glsa/201710-27 Third Party Advisory
https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html Third Party Advisory
https://www.arista.com/en/support/advisories-notices/security-advisories/3577-security-advisory-30 MitigationThird Party Advisory
https://www.broadcom.com/support/fibre-channel-networking/security-advisories/brocade-security-advisory-2017-449 Third Party Advisory
https://www.broadcom.com/support/fibre-channel-networking/security-advisories/brocade-security-advisory-2017-449/ Third Party Advisory
https://www.debian.org/security/2017/dsa-3989 Third Party Advisory
https://www.exploit-db.com/exploits/42941/ ExploitThird Party AdvisoryVDB Entry
https://www.kb.cert.org/vuls/id/973527 Third Party AdvisoryUS Government Resource
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html
https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq Third Party Advisory

Track CVE-2017-14491 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-14491), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.