CVE-2022-31802: Partial string comparison in CODESYS gateway server
Vulnerability summary
CVE-2022-31802 is a critical (CVSS 9.8) Partial String Comparison vulnerability in codesys codesys gateway server v2. EPSS estimates a 1.35% chance of exploitation in the next 30 days, higher than 72.5% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 24-06-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.35%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 1.33% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Codesys2 products
- codesys gateway server v2≥ V2, < V2.3.9.38
- gateway≥ 2.0, < 2.3.9.38
1 vendor · 2 products