Security Advisory

CVE-2022-31806: CODESYS V2 No Default PLC Password

Last updated:
  • CVE-2022-31806

CVE-2022-31806 is an insecure default in CODESYS V2 runtimes: password protection is off out of the box and nothing prompts the user to turn it on, so anyone who can reach the controller can connect without credentials. CERT@VDE scores it 9.8; NVD's Primary score is CVSS v2 6.8. Festo lists 32 controllers, control blocks and panels; the remedy is setting a PLC password.

Need to know whether your firmware ships an affected version? Get a firmware scan report or contact us.

How severe is CVE-2022-31806?

CVSS base score

6.8

Medium severity

EPSS score (FIRST)

1.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-31806 · Source: NVD

CVSS v3.1 severity rating scale: None 0.0, Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9, Critical 9.0 to 10.0
How a CVSS v3.1 base score maps to a severity rating. Source: FIRST CVSS v3.1 specification, section 5.

Which products and versions does CVE-2022-31806 affect?

ComponentCPEVersion range
CODESYS V2 PLCWinNT and Runtime Toolkit 32 bit fullcpe:2.3:a:codesys:plcwinnt:*:*:*:*:*:*:*:*Before 2.4.7.57 (NVD, CODESYS Advisory 2022-12); 2.4.7.57 and Development System 2.3.9.69 add a login reminder, the password must still be set
Festo CECC, CECX, FED-CEC controllers; CPX-CEC, CPX-CMXX, CPX-E-CEC control blocks; CDPX operator units; SBO*-Q vision systems (32 products)—All versions (FSA-202208 / VDE-2022-037, ICSA-25-329-05); remedy: enable password protection at login; no Festo CPE in NVD
Festo Automation Suite with bundled CODESYS Development System 3.0 or 3.5.16.10—Before 2.8.0.138 affected; fixed component CODESYS Development System 3.5.21.20 installed separately (FSA-202601, ICSA-26-076-01)

What does CVE-2022-31806 mean for affected devices?

The CVE record, assigned by CERT@VDE and published on 2022-06-24, reads: "In CODESYS V2 PLCWinNT and Runtime Toolkit 32 in versions prior to V2.4.7.57 password protection is not enabled by default and there is no information or prompt to enable password protection at login in case no password is set at the controller." NVD's only Primary metric is CVSS v2 6.8 (AV:N/AC:M/Au:N/C:P/I:P/A:P); NVD has no CVSS v3 score of its own for this record. CERT@VDE, the CNA, scores CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), shown at NVD as Secondary. The weakness is CWE-1188, initialization of a resource with an insecure default. NVD's CPEs cover CODESYS PLCWinNT and the 32-bit Runtime Toolkit before 2.4.7.57 (NVD, CVE.org record).

What does CODESYS say?

CODESYS Advisory 2022-12 (version 4.0 of 2022-12-14) covers this flaw together with CVE-2022-31805, passwords sent unprotected by the V2 protocol. It rates the pair critical at 9.8 and states that no known public exploits target them. The V2 runtime fixes are PLCWinNT and Runtime Toolkit 32 bit full 2.4.7.57, with Development System 2.3.9.69. CODESYS explains that, because CODESYS V2 is a legacy product, it "could not enforce a PLC password by default in a compatible way". Instead, the Development System now reminds the programmer at login to set a PLC password, and acting on that hint "secures both current and old PLC runtime versions". The update therefore does not set a password for you. Chen Jie of NSFOCUS reported the flaw.

Which Festo products are affected?

Festo advisory FSA-202208, published by CERT@VDE as VDE-2022-037 on 2022-11-29 and revised on 2025-10-28 (CSAF), says the products "are shipped with an unsafe configuration of the integrated CODESYS Runtime environment" with no default PLC password. It lists 32 products, all versions, with this CVE at 9.8 and CVE-2022-22515 at 8.1:

  • controllers CECC-D, CECC-D-BA, CECC-D-CS, CECC-LK, CECC-S, CECC-X-M1, CECC-X-M1-MV, CECC-X-M1-S1, CECX-X-C1, CECX-X-M1 and FED-CEC;
  • control blocks CPX-CEC, CPX-CEC-C1, CPX-CEC-M1, CPX-CEC-C1-V3, CPX-CEC-M1-V3, CPX-CEC-S1-V3 and CPX-CMXX, and the CPX-E-CEC-C1 and -M1 controllers with their -EP and -PN variants;
  • CDPX operator units and the SBO*-Q compact vision systems.

CISA republished it as ICSA-25-329-05 on 2025-11-25. Festo's FSA-202601 (CSAF) also lists the CVE for Automation Suite before 2.8.0.138 with the bundled CODESYS Development System.

What should asset owners do?

Festo names no firmware fix; the remedy is configuration. Enable password protection at login on every controller that has no password, and note Festo's warning that the password configuration file "is not covered via default FFT backup & Restore mechanism", so select it by hand when you back up a controller with Festo Field Device Tool. Update CODESYS V2 engineering installations to 2.3.9.69 so the login reminder appears, and keep the controllers on a firewalled network with VPN-only remote access. The Festo CECC and CPX-CEC guide explains why the login often does not exist on these products, and the CODESYS runtime guide covers CODESYS V2 across vendors. The authentication bypass fix guide covers why a device should not ship without credentials. Related flaws are the unauthenticated CODESYS V2 runtime access CVE-2012-6068 on the legacy CECX controllers and the gateway password check CVE-2022-31802.

CVE-2022-31806 is not in the CISA KEV catalog as of 2026-12-04 (catalog version 2026.12.03, 1,811 entries). FIRST EPSS gives it 0.01248, the 70.3rd percentile, in the 2026-12-04 dataset (CISA KEV, FIRST EPSS).

Three signals on every advisory: CVSS says how severe the flaw is, EPSS gives the probability of exploitation in the wild in the next 30 days, and a CISA KEV listing means the flaw has been exploited in the wild
CVSS rates severity, EPSS estimates the likelihood of exploitation, and CISA KEV records exploitation seen in the wild. Source: FIRST EPSS; CISA KEV catalog.

How do the CVSS, EPSS and KEV signals for CVE-2022-31806 compare?

CVE-2022-31806 signals as recorded on this page, last checked .
SignalValue for CVE-2022-31806SourceWhat it tells you
CVSS base score6.8 (Medium)NVDHow severe the flaw is in its worst case, from 0.0 to 10.0; it says nothing about whether anyone is exploiting it.
EPSS probability1.2%FIRST EPSSThe probability that the CVE is exploited in the wild in the next 30 days.
CISA KEV listingNot listed as of 2026-12-04CISA KEV catalogA listing means CISA has reliable evidence of exploitation in the wild; BOD 22-01 sets a remediation due date for US federal civilian agencies.
Published2022-06-24NVDThe date the CVE record was first published in NVD.

How does the CVE-2022-31806 score change on your network?

A CVSS base score assumes the worst-case exposure. If the vulnerable interface on your device is reachable only from a local segment, or an attacker needs an account first, change those metrics below to see the re-scored base value. The FIRST CVSS v3.1 specification puts deployment-specific scoring in the Environmental metric group, so treat this as a quick what-if, not a replacement score.

Starting vector (the first CVSS v3 vector quoted in this advisory): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Quoted vector: 9.8 (Critical)

Your re-score: 9.8 (Critical)

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

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.
From advisory to verified fix in four steps: read the advisory, find the affected component in the firmware SBOM, apply the fixed version or vendor mitigation, then re-scan the image to confirm the vulnerable version is gone
Read the advisory, find the component in your firmware SBOM, apply the fix, then re-scan to confirm it.

How do you check CVE-2022-31806 status from the command line?

These commands re-read the three public signals for CVE-2022-31806 (NVD, FIRST EPSS and the CISA KEV feed) so a build pipeline or a ticket can record the current values. They need curl and jq.

# NVD: CVSS metrics and record status (no API key: at most 5 requests per 30 s)
curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2022-31806" \
  | jq '.vulnerabilities[0].cve | {vulnStatus, metrics}'

# FIRST EPSS: today's exploitation probability and percentile
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2022-31806" | jq '.data[0]'

# CISA KEV: prints the catalog entry, or nothing if the CVE is not listed
curl -s https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json \
  | jq --arg id CVE-2022-31806 '.vulnerabilities[] | select(.cveID == $id)'

Which sources back each CVE-2022-31806 claim?

  • NVD (read 2026-12-04): status Modified; published 2022-06-24; NVD Primary CVSS v2 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P only; CERT@VDE Secondary CVSS v3.1 9.8; CWE-1188; CPEs codesys plcwinnt and runtime_toolkit (x86) before 2.4.7.57. — NVD
  • CVE record (checked 2026-12-04): state PUBLISHED, CNA CERTVDE, published 2022-06-24, CVSS v3.1 9.8; products CODESYS PLCWinNT, Runtime Toolkit 32 bit full. — CVE.org
  • CODESYS Advisory 2022-12 v4.0 (2022-12-14): CVE-2022-31805 and CVE-2022-31806, 9.8 critical; PLCWinNT and Runtime Toolkit 32 bit full fixed 2.4.7.57, Development System 2.3.9.69; legacy product, password not enforced by default, login reminder instead; no known public exploits; credit Chen Jie, NSFOCUS. — CODESYS Advisory 2022-12
  • Festo FSA-202208 / VDE-2022-037 (2022-11-29, rev 2025-10-28): unsafe default CODESYS configuration, 32 products all versions; CVE-2022-31806 9.8, CVE-2022-22515 8.1; mitigation enable password protection, password file not in default FFT backup and restore. — CERT@VDE VDE-2022-037
  • Festo FSA-202208 CSAF: product list for CVE-2022-31806 (32 products). — Festo FSA-202208 CSAF
  • CISA ICSA-25-329-05 (2025-11-25): Festo Compact Vision System, Control Block, Controller, and Operator Unit products; CVE-2022-22515, CVE-2022-31806. — CISA ICSA-25-329-05
  • Festo FSA-202601 lists CVE-2022-31806 for Automation Suite before 2.8.0.138 with bundled CODESYS Development System. — Festo FSA-202601 CSAF
  • Not in the CISA KEV catalog, catalog version 2026.12.03, 1,811 entries, checked 2026-12-04. — CISA KEV
  • EPSS 0.01248, percentile 0.70344, dataset 2026-12-04, read 2026-12-04. — FIRST EPSS

Is your firmware affected by CVE-2022-31806?

Advisories in the same weakness class as CVE-2022-31806

Sources for CVE-2022-31806

  1. NVD
  2. CODESYS Advisory 2022-12: CODESYS V2 password protection
  3. CERT@VDE VDE-2022-037 (Festo FSA-202208): unsafe default CODESYS configuration
  4. Festo CSAF FSA-202208
  5. CISA CSAF: ICSA-25-329-05 Festo Compact Vision System, Control Block, Controller, and Operator Unit products
  6. Festo CSAF FSA-202601: CODESYS vulnerabilities in Festo Automation Suite
  7. CVE.org record CVE-2022-31806 (CNA: CERT@VDE)
  8. CISA KEV
  9. FIRST EPSS

CVE-2022-31806: frequently asked questions

Does a CODESYS update fix CVE-2022-31806?

Not by itself. CODESYS 2.4.7.57 and Development System 2.3.9.69 only remind the programmer at login to set a PLC password; CODESYS says it could not enforce a default password compatibly. The fix is setting the password.

Which Festo products are affected?

FSA-202208 (VDE-2022-037, CISA ICSA-25-329-05) lists 32 products in all versions, including every CECC and CECX controller, the CPX-CEC, CPX-CMXX and CPX-E-CEC control blocks, the CDPX operator units and the SBO*-Q vision systems.

Why is it 9.8 at CERT@VDE but 6.8 at NVD?

NVD's only Primary metric is a CVSS v2 6.8 with medium access complexity. CERT@VDE, the CNA, and Festo score CVSS v3.1 9.8, because a controller without a password accepts any network client.

Is CVE-2022-31806 in the CISA KEV catalog?

No, not as of 2026-12-04 (catalog version 2026.12.03, 1,811 entries). FIRST EPSS rates it 0.01248 (70.3rd percentile) in the 2026-12-04 dataset.