Partial String Comparison in CODESYS Gateway Server V2 - CVE-2022-31802

 

Partial String Comparison in CODESYS Gateway Server V2 - CVE-2022-31802

Published: July 2, 2025


Vulnerability identifier: #VU112094
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2022-31802
CWE-ID: CWE-187
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Festo
Affected software:
CODESYS Gateway Server V2

Detailed vulnerability description

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to only part of the specified password is being compared to the real CODESYS Gateway password. A remote attacker can specify a small password that matches the corresponding part of the longer real CODESYS Gateway password and perform authentication on the system.


How to mitigate CVE-2022-31802

Install updates from vendor's website.

Sources