CVE-2022-31802 in Codesys Gateway
In CODESYS Gateway Server V2 for versions prior to V2.3.9.38 only a part of the the specified password is been compared to the real CODESYS Gateway password. An attacker may perform authentication by specifying a small password that matches the corresponding part of the longer real CODESYS Gateway password.
Affects 1 product from 1 vendor. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Codesys | Gateway | ≥ 2.0, < 2.3.9.38 |
| Wago | 750-331 Firmware | ≤ 01.04.16(14) |
| Wago | 750-823 Firmware | ≤ 01.05.04(10) |
| Wago | 750-829 Firmware | ≤ 01.04.16(14) |
| Wago | 750-831 Firmware | ≤ 01.04.16(14) |
| Wago | 750-832 Firmware | ≤ 01.02.16(06) |
| Wago | 750-852 Firmware | ≤ 01.09.25(16) |
| Wago | 750-862 Firmware | ≤ 01.05.04(10) |
| Wago | 750-880 Firmware | ≤ 01.08.25(16) |
| Wago | 750-881 Firmware | ≤ 01.09.25(16) |
| Wago | 750-882 Firmware | ≤ 01.08.25(16) |
| Wago | 750-885 Firmware | ≤ 01.07.25(16) |
| Wago | 750-889 Firmware | ≤ 01.03.25(16) |
| Wago | 750-890 Firmware | ≤ 01.05.04(10) |
| Wago | 750-891 Firmware | ≤ 01.05.04(10) |
| Wago | 750-893 Firmware | ≤ 01.05.04(10) |
| Wago | Pfc200 Firmware | ≤ 03.10.08(22) |
Fix and vendor advisory
- CODESYS provided by Festo all versions: Mitigation: Enable password protection at login in case no password is set at the controller. Please note that the password configuration file is not covered by the default FFT backup and restore mechanism. You must select the related file manually.
Source: ICSA-25-182-03
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2022-31802 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-319655-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-06-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strong password policies and enforce multi-factor authentication to mitigate the risk of unauthorized access.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.