Description
The CmpLinuxRTDiag component of the CODESYS Control runtime system for Linux performs improper length checking when handling PLC shell requests. By sending a specially crafted request, an authenticated, high-privileged remote attacker can exploit this flaw, which may result in arbitrary code execution on the affected Linux device.
Affected products and versions
CODESYS Runtime Toolkit3.22.0.0 – < 3.5.22.50Fixed in: 3.5.22.50
CODESYS Control for BeagleBone SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for emPC-A/iMX6 SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for IOT2000 SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for Linux ARM SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for Linux SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for PFC100 SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for PFC200 SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for PLCnext SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CODESYS Control for Raspberry Pi SL4.21.0.0 – < 4.24.0.0Fixed in: 4.24.0.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Administrator
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-787 Out-of-bounds Write
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.