Security Advisory

CVE-2017-16718: TwinCAT ADS Add Route Fixed Key

Last updated:
  • CVE-2017-16718

CVE-2017-16718 means Beckhoff TwinCAT 3 encrypts the username and password of a remote ADS Add Route request with a fixed key, so anyone who captures that request can decrypt the controller login. NVD and Beckhoff score it 5.9. There is no patch: Beckhoff says to add routes locally or use Secure ADS only.

Vulnerability summary

CVSS base score

5.9

Medium severity

EPSS score (FIRST)

0.4%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
Beckhoff TwinCAT 3 (components with ADS remote route creation)cpe:2.3:a:beckhoff:twincat:3.0:*:*:*:*:*:*:*TwinCAT 3 (NVD CPE 3.0; CNA 'Version 3'); all TwinCAT 3 components featuring ADS remote route creation except TwinCAT/BSD per Beckhoff 2017-002; no patch, mitigate with local static routes or Secure ADS

What does this mean for affected devices?

NVD describes CVE-2017-16718 in Beckhoff's own words: TwinCAT 3 ADS "uses user configured routes, that can be edited remotely via ADS. This special command supports encrypted authentication with username/password. The encryption uses a fixed key, that could be extracted by an attacker. Precondition of the exploitation of this weakness is network access at the moment a route is added." NVD's Primary score is CVSS v3.0 5.9 (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N), with a v2 score of 4.3, and its CPE names TwinCAT 3.0. ICS-CERT assigned the record, published on 2018-06-27 (CVE record).

The weakness is labelled three ways: NVD uses CWE-327 (broken or risky cryptographic algorithm), the ICS-CERT CNA CWE-522 (insufficiently protected credentials), and Beckhoff CWE-321 (use of hard-coded cryptographic key). All three describe the same fact: anyone who knows the key can read the password.

When does CVE-2017-16718 expose credentials?

An ADS router accepts commands from hosts in its route table, so adding a route is the security-relevant step. Routes can be added remotely by sending a request with a username and password for the target; with the "Encrypted Password" option, that password is encrypted with a key that is the same everywhere. An attacker who captures the request on the network can decrypt it and gets a Windows or TwinCAT/BSD login for the controller or IPC. Beckhoff advisory 2017-002 (version 1.3, 2023-12-18; first published 2017-03-13) lists "All TwinCAT 3 Components featuring ADS remote route creation, except TwinCAT/BSD based products" and scores it CVSS v3.0 5.9, matching NVD. TwinCAT/BSD came out after the advisory and blocks plain ADS by default, using Secure ADS with TLS instead. Beckhoff credits Peter Schwanke of FH Aachen.

How do you fix or mitigate CVE-2017-16718?

There is no firmware patch. Beckhoff's solution is to add static routes only locally on the target, so no credentials cross the network, or to block plain ADS and use only Secure ADS, which all recent Beckhoff products support. On TwinCAT/BSD, Beckhoff says the default settings that forbid plain ADS should not be changed. If a password was ever sent through a remote Add Route on an untrusted network segment, treat it as exposed and change it.

The key problem sits on top of the ADS design issue that Beckhoff advisory 2017-001 covers: once a route exists, ADS has no per-command authentication or encryption (CVE-2017-16726, CVE-2019-16871). A related login weakness is the unlimited password guessing over ADS in CVE-2014-5414.

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.00423, the 37.5th percentile, in the 2026-11-20 dataset (FIRST EPSS). Our Beckhoff TwinCAT and ADS security guide covers route management and Secure ADS, and the weak cryptography fix guide covers per-device keys and TLS.

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

Evidence

  • Description quoted; NVD Primary CVSS v3.0 5.9 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N and v2 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N; CWE-327 (NVD, Primary), CWE-522 (ICS-CERT, Secondary); CPE beckhoff:twincat:3.0; status Modified; published 2018-06-27; read 2026-11-21. — NVD
  • State PUBLISHED, assigner icscert, published 2018-06-27; affected Beckhoff TwinCAT Version 3; reference Beckhoff advisory 2017-002; checked 2026-11-21. — CVE.org
  • 'Add Route using Encrypted Password bases on fixed key', published 2017-03-13, version 1.3 of 2023-12-18; CVSS 3.0 5.9 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N; CWE-321; appearance: all TwinCAT 3 components featuring ADS remote route creation, except TwinCAT/BSD based products; TwinCAT/BSD blocks plain ADS by default and uses Secure ADS with TLS; solution: add static routes only locally, or block plain ADS and use Secure ADS only; credit Peter Schwanke (FH Aachen); read 2026-11-21. — Beckhoff advisory 2017-002
  • ADS does not provide security properties; attackers can eavesdrop, manipulate and forge packets; Secure ADS available since TwinCAT 3.1 Build 4024.0; read 2026-11-21. — Beckhoff advisory 2017-001
  • 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.00423, percentile 0.37537, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD: CVE-2017-16718
  2. CVE.org record CVE-2017-16718 (CNA: ICS-CERT)
  3. Beckhoff Security Advisory 2017-002: Add Route using Encrypted Password bases on fixed key
  4. Beckhoff Security Advisory 2017-001: ADS is only designed for use in protected environments
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which Beckhoff products does CVE-2017-16718 affect?

All TwinCAT 3 components that support creating ADS routes remotely, except TwinCAT/BSD based products, which block plain ADS by default and use Secure ADS. NVD's CPE names TwinCAT 3.0 (per Beckhoff advisory 2017-002 and NVD).

Is there a patch for CVE-2017-16718?

No. Beckhoff's solution is to add static routes only locally on the target, so no credentials are sent over the network, or to block plain ADS and use Secure ADS only (per Beckhoff advisory 2017-002).

Why do NVD, ICS-CERT and Beckhoff list different CWEs?

NVD uses CWE-327, ICS-CERT CWE-522 and Beckhoff CWE-321. They describe the same flaw from different angles: a risky algorithm, poorly protected credentials and a hard-coded key (per NVD and Beckhoff advisory 2017-002).

What should I do if passwords were sent with remote Add Route?

Assume a password sent this way over a network an attacker could observe is exposed: change it, and add future routes locally or over Secure ADS. The advisory's precondition is network access at the moment the route is added (per NVD and Beckhoff advisory 2017-002).