# CVE-2022-31804: CODESYS Gateway server prone to denial of service attack due to excessive memory allocation

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-06-24 · Modified: 2024-09-16
- Record: https://cvemate.com/vulnerability/CVE-2022-31804 · JSON: https://cvemate.com/vulnerability/CVE-2022-31804/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.183%, percentile 68.786%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- codesys codesys gateway server v2: ≥ unspecified, \< V2.3.9.38
- codesys gateway: ≥ 2.0, \< 2.3.9.38

## References

- <https://customers.codesys.com/index.php?eID=dumpFile&t=f&f=17141&token=17867e35cfd30c77ba0137f9a17b3a557a4b7b66&download=>

---

Data as of 2026-12-05T10:26:35.926Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
