Security Advisory

CVE-2017-16726: Beckhoff ADS Packet Forgery

Last updated:
  • CVE-2017-16726

CVE-2017-16726 records that Beckhoff's ADS protocol, used by TwinCAT 2 and 3, has no encryption or authentication of its own: anyone who can observe legitimate ADS traffic can forge ADS packets to the controller. NVD scores it 9.1. There is no patch; Beckhoff advisory 2017-001 says to use protected networks and Secure ADS.

Vulnerability summary

CVSS base score

9.1

Critical severity

EPSS score (FIRST)

0.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
Beckhoff TwinCAT 2 and 3 (ADS protocol)cpe:2.3:a:beckhoff:twincat:-:*:*:*:*:*:*:*TwinCAT 2 and 3 (CNA record, Beckhoff 2017-001); NVD CPE without version; no patch, Secure ADS available since TwinCAT 3.1 Build 4024.0

What does this mean for affected devices?

NVD describes CVE-2017-16726 as follows: "Beckhoff TwinCAT supports communication over ADS. ADS is a protocol for industrial automation in protected environments. ADS has not been designed to achieve security purposes and therefore does not include any encryption algorithms because of their negative effect on performance and throughput. An attacker can forge arbitrary ADS packets when legitimate ADS traffic is observable." NVD's Primary score is CVSS v3.0 9.1 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), with a v2 score of 6.4. NVD lists CWE-326 (inadequate encryption strength); the ICS-CERT CNA lists CWE-285 (improper authorization). The CPE covers TwinCAT without a version, and the CNA record names TwinCAT versions 2 and 3; it was published on 2018-06-27 (CVE record).

What does CVE-2017-16726 mean in practice?

This CVE records a design property, not a coding bug. Beckhoff advisory 2017-001 (version 1.4, 2019-12-03; first published 2017-03-13; relevance Medium) says ADS "does not provide security properties" and that "Attackers can eavesdrop, manipulate and forge arbitrary packets as in any other cleartext protocol." It lists TwinCAT 2 and 3, and adds that "In case ADS access is possible, various system related services can be used." A route is granted per host, as Rapid7 describes the ADS router: it checks its routing table for the sending host and then forwards the packet to the addressed component. An attacker who can observe legitimate ADS traffic on the segment can therefore send packets that the controller cannot tell apart from the real client's. In 2019 Beckhoff added CVE-2019-16871 to the same advisory: whoever has ADS access can also use local system services, up to code execution as SYSTEM on Windows-based targets. Beckhoff credits Peter Schwanke of FH Aachen and Yury Serdyuk of Kaspersky Lab.

How do you mitigate CVE-2017-16726?

There is no patch, because the fix is architectural. Beckhoff's solution in advisory 2017-001:

  • Use plain ADS only in protected environments where no attack is possible.
  • Where all ADS applications run on the same system, block ADS at the firewall.
  • For distributed applications, use other transports such as ADS over IPsec, ADS-over-MQTT or OPC UA, or Secure ADS, available since TwinCAT 3.1 Build 4024.0, which carries ADS over an encrypted connection. Unencrypted ADS can then be disabled and connections made one-way.
  • Even with Secure ADS, "who ever has access via ADS could use various local services", so access control on who gets a route still matters.

In an OT network review, the finding is any segment where a controller's ADS ports, including the UDP 48899 discovery port, are reachable from hosts other than the HMI and engineering stations. Remote route creation adds a second exposure, since its password encryption uses a fixed key (CVE-2017-16718).

It is not in the CISA KEV catalog as of 2026-11-21 (catalog version 2026.11.20, 1,790 entries; no entry names Beckhoff). FIRST EPSS gives it 0.00508, the 44.3rd percentile, in the 2026-11-20 dataset (FIRST EPSS). Our Beckhoff TwinCAT and ADS security guide walks through segmentation and Secure ADS rollout; related ADS advisories include the password brute force CVE-2014-5414 and the discovery-port crash CVE-2011-3486.

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • Description quoted; NVD Primary CVSS v3.0 9.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N and v2 6.4 AV:N/AC:L/Au:N/C:P/I:P/A:N; CWE-326 (NVD, Primary), CWE-285 (ICS-CERT, Secondary); CPE beckhoff:twincat:- ; status Modified; published 2018-06-27; read 2026-11-21. — NVD
  • State PUBLISHED, assigner icscert, published 2018-06-27; affected Beckhoff TwinCAT Version 2, Version 3; reference Beckhoff advisory 2017-001; checked 2026-11-21. — CVE.org
  • 'ADS is only designed for use in protected environments', published 2017-03-13, version 1.4 of 2019-12-03, relevance Medium, related CVE-2017-16726 and CVE-2019-16871; appearance TwinCAT 2 / 3; attackers can eavesdrop, manipulate and forge packets; solution: protected environments, block ADS via firewall when all ADS applications run on one system, ADS over IPsec, ADS-over-MQTT, OPC UA or Secure ADS (since TwinCAT 3.1 Build 4024.0), optionally disable non-encrypted ADS and use uni-directional connections; credits Peter Schwanke (FH Aachen) and Yury Serdyuk (Kaspersky Lab); read 2026-11-21. — Beckhoff advisory 2017-001
  • Remote ADS route creation encrypts credentials with a fixed key (CVE-2017-16718); read 2026-11-21. — Beckhoff advisory 2017-002
  • The ADS router listens on a TCP port, consults its routing table for the sending host and forwards the decapsulated packet to the addressed local component if a route exists; read 2026-11-21. — Rapid7 R7-2019-32
  • Not in the CISA KEV catalog version 2026.11.20 (1,790 entries, released 2026-11-20); no entry with Beckhoff as vendor; checked 2026-11-21. — CISA KEV
  • EPSS 0.00508, percentile 0.4427, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD: CVE-2017-16726
  2. CVE.org record CVE-2017-16726 (CNA: ICS-CERT)
  3. Beckhoff Security Advisory 2017-001: ADS is only designed for use in protected environments
  4. Beckhoff Security Advisory 2017-002: Add Route using Encrypted Password bases on fixed key
  5. Rapid7 R7-2019-32: Beckhoff TwinCAT ADS router and discovery protocol
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Is there a patch for CVE-2017-16726?

No. The CVE describes how ADS was designed, without encryption. Beckhoff's answer is to use ADS only in protected environments, block it at the firewall where possible, and use Secure ADS, ADS over IPsec, ADS-over-MQTT or OPC UA for distributed systems (per Beckhoff advisory 2017-001).

Which TwinCAT version adds Secure ADS?

TwinCAT 3.1 Build 4024.0. Secure ADS carries ADS over an encrypted connection, and unencrypted ADS can then be disabled; Beckhoff notes that anyone with ADS access can still use local services (per Beckhoff advisory 2017-001).

Why does NVD rate it 9.1 when Beckhoff rates the advisory Medium?

NVD scores network access, no privileges and high confidentiality and integrity impact, giving CVSS v3.0 9.1. Beckhoff's advisory gives a relevance rating of Medium and no CVSS score, because ADS is meant only for protected networks (per NVD and Beckhoff advisory 2017-001).

Is CVE-2017-16726 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-21 (catalog version 2026.11.20), and FIRST EPSS gives it 0.00508, the 44.3rd percentile, in the 2026-11-20 dataset (per CISA KEV and FIRST EPSS).