CVE-2022-31804: The CODESYS Gateway Server V2 does not verifiy that the size of a request is within expected limits
CVE-2022-31804 is a high-severity flaw (CVSS 7.5) affecting gateway. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.2% (top 33%) |
| CISA exploited list | No |
| Weakness | CWE-789 |
| Published | 2022-06-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31804?
gateway: upgrade to 2.3.9.38. Exact commands for each OS are on this page.
Is CVE-2022-31804 being exploited?
CVE-2022-31804 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31804 affect?
CVE-2022-31804 affects gateway. Severity is high (CVSS 7.5). 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 co
How urgent is CVE-2022-31804?
Priority 48/100. High severity; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-22771 HIGH 8.8 UPGRADE Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based applicati
- CVE-2025-24030 HIGH 7.1 UPGRADE Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based applicati
- CVE-2023-24488 MEDIUM 6.1 UPGRADE UPGRADE Cross site scripting vulnerability in Citrix ADC and Citrix Gateway in allows and attacker to perform cross s
- CVE-2023-24487 MEDIUM 6.3 UPGRADE UPGRADE Arbitrary file read in Citrix ADC and Citrix Gateway
- CVE-2022-38368 HIGH 8.8 UPGRADE An issue was discovered in Aviatrix Gateway before 6.6.5712 and 6.7.x before 6.7.1376