CVE-2022-31804 in Codesys Gateway
High 7.5
Industrial / OT
The CODESYS Gateway Server V2 does not verifiy that the size of a request is within expected limits. An unauthenticated attacker may allocate an arbitrary amount of memory, which may lead to a crash of the Gateway due to an out-of-memory condition.
Affects 1 product from 1 vendor. Description from NVD and MITRE.
CVSS 3.17.5
EPSS1.2%
EPSS percentile69th
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no 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-31804 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-067737-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2022-06-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
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.