# CVE-2022-31802: Partial string comparison in CODESYS gateway server

- Severity: Critical 9.8 (CVSS:3.1, scored by CERTVDE) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 67% of CVEs (2026-11-30)
- Published: 2022-06-24T07:46:09.625Z
- Modified: 2026-06-17T04:46:20.320Z
- Weaknesses: CWE-187
- Assigned by: CERTVDE

## 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.

(As written by CVE List.)

## Affected

- CODESYS CODESYS Gateway Server V2: from V2 before V2.3.9.38
- codesys gateway: from 2.0 before 2.3.9.38

## Every score

- CERTVDE: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

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

## Sources

- CVE List: [CVE-2022-31802](https://www.cve.org/CVERecord?id=CVE-2022-31802), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2022-31802](https://nvd.nist.gov/vuln/detail/CVE-2022-31802), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31802 · Whole record: https://cve.day/CVE-2022-31802.json · Rebuilt by cve.day 2026-11-25T22:58:12.532Z
