Security Advisory

CVE-2017-14491: dnsmasq DNS Heap Overflow

Last updated:
  • CVE-2017-14491

CVE-2017-14491 is a heap overflow in dnsmasq before 2.78. An attacker who controls a domain that dnsmasq is made to look up can send a reply that overflows a heap buffer and crashes or takes control of the daemon. NVD scores it 9.8. Siemens lists RUGGEDCOM RM1224 and SCALANCE M-800, S615 and W1750D devices as affected.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

86.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2017-14491 · Source: NVD

Affected components

ComponentCPEVersion range
dnsmasq (DNS reply handling)cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*up to and including 2.77; fixed in 2.78 (dnsmasq CHANGELOG)
Siemens RUGGEDCOM RM1224 and SCALANCE M-800 / S615—all versions before V5.0; fixed in V5.0 (Siemens ProductCERT SSA-689071)
Siemens SCALANCE W1750Dcpe:2.3:o:siemens:scalance_w1750d_firmware:*:*:*:*:*:*:*:*all versions before V6.5.1.5; fixed in V6.5.1.5 (Siemens ProductCERT SSA-689071)

What does this mean for affected devices?

CVE-2017-14491 is a heap-based buffer overflow (CWE-787) in dnsmasq's DNS code. NVD describes it as allowing "remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted DNS response", scores it 9.8 (critical), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and lists dnsmasq up to and including 2.77. Its CPE configuration also names device firmware from Siemens, Aruba, Arista, Synology and others (NVD).

The dnsmasq CHANGELOG entry for 2.78 calls it "a potentially serious security hole". It "allows an attacker who can make DNS requests to dnsmasq, and who controls the contents of a domain, which is thereby queried, to overflow (by 2 bytes) a heap buffer and either crash, or even take control of, dnsmasq." The Google Security Team found it with five other dnsmasq bugs. Their disclosure of 2 October 2017 notes that dnsmasq runs in "home routers, and IoT devices" and that before 2.76 and a later commit the overflow was unrestricted, not limited to 2 bytes. CERT/CC VU#973527 lists Ruckus Wireless, Technicolor and ZyXEL as affected vendors.

Siemens ProductCERT SSA-689071, first published 2017-11-17 and last updated 2020-10-13, names the industrial devices:

  • RUGGEDCOM RM1224 LTE router: all versions before V5.0, fixed in V5.0.
  • SCALANCE M-800 / S615 industrial routers: all versions before V5.0, fixed in V5.0.
  • SCALANCE W1750D access point: all versions before V6.5.1.5, fixed in V6.5.1.5.

Siemens scores the CVE 8.1 for these devices (AV:N/AC:H), because the attacker must be able to trigger DNS requests from the device and be in a privileged position to inject malicious DNS responses. Its workarounds: on M-800, S615 and RM1224, disable the DNS proxy and point internal devices at a different DNS server. On the W1750D, if OpenDNS, Captive Portal or URL redirection are unused, block incoming access to port 53/UDP.

The same pattern applies to any router that forwards DNS for its LAN. A client behind the device can trigger the lookup, so the attacker only needs a domain they control. Our dnsmasq vulnerabilities in embedded firmware guide shows how to find the dnsmasq version in an image and how to restrict where it listens. The 2021 DNSpooq overflow CVE-2020-25681 is a later heap overflow reachable through forged DNS replies, in the DNSSEC code.

CVE-2017-14491 is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.865, the 99.7th percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

To fix it, update Siemens devices to the versions above and any other firmware to a release with dnsmasq 2.78 or later. The Debian Security Tracker lists backports such as 2.76-5+deb9u1 for stretch (DSA-3989-1). Our memory corruption fix guide covers heap overflows as a class.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Heap overflow via crafted DNS response; NVD CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), CWE-787; dnsmasq up to 2.77; CPEs include Siemens, Aruba, Arista, Synology firmware. — NVD
  • 2.78: heap overflow in DNS code, attacker who can make DNS requests and controls a queried domain can overflow by 2 bytes and crash or take control; credited to the Google Security Team. — dnsmasq CHANGELOG
  • dnsmasq is used in home routers and IoT devices; before 2.76 and a later commit the overflow was unrestricted. — Google Security Blog, Behind the Masq
  • Ruckus Wireless, Technicolor and ZyXEL listed as affected. — CERT/CC VU#973527
  • RUGGEDCOM RM1224 and SCALANCE M-800/S615 before V5.0, SCALANCE W1750D before V6.5.1.5 affected; Siemens CVSS 8.1 (AV:N/AC:H); workarounds: disable DNS proxy, block 53/UDP. — Siemens ProductCERT SSA-689071
  • Stretch fixed in 2.76-5+deb9u1 (DSA-3989-1). — Debian Security Tracker
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.86491 (99.7th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-689071: DNSMasq vulnerabilities in SCALANCE W1750D, SCALANCE M-800 / S615 and RUGGEDCOM RM1224
  3. CERT/CC VU#973527: Dnsmasq contains multiple vulnerabilities
  4. Google Security Blog: Behind the Masq, yet more DNS and DHCP vulnerabilities
  5. dnsmasq CHANGELOG
  6. Debian Security Tracker
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which Siemens devices are affected by CVE-2017-14491?

SSA-689071 lists RUGGEDCOM RM1224 and SCALANCE M-800 / S615 before V5.0 and SCALANCE W1750D before V6.5.1.5, each fixed in that version (per Siemens ProductCERT).

What does an attacker need to exploit CVE-2017-14491?

The ability to make dnsmasq query a domain the attacker controls, so that the crafted reply reaches it. Any client behind a router that forwards DNS can trigger that lookup (per the dnsmasq CHANGELOG and Siemens ProductCERT).

How can Siemens users mitigate CVE-2017-14491 before updating?

On SCALANCE M-800, S615 and RUGGEDCOM RM1224, disable the DNS proxy and use a different DNS server for internal devices. On SCALANCE W1750D, block incoming access to port 53/UDP if OpenDNS, Captive Portal or URL redirection are unused (per Siemens ProductCERT).

Is CVE-2017-14491 in the CISA KEV catalog?

No, not as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.865, the 99.7th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).