CVE-2024-6876 in Codesys Oscat Basic Library
Medium 4.4
Industrial / OT
Out-of-Bounds read vulnerability in OSCAT Basic Library allows an local, unprivileged attacker to access limited internal data of the PLC which may lead to a crash of the affected service.
Affects 1 product from 1 vendor. Description from NVD and MITRE.
CVSS 3.14.4
EPSS0.2%
EPSS percentile9th
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Codesys | Oscat Basic Library | ≤ 335 |
Fix and vendor advisory
- Mitigation: Update the OSCAT Basic Library to Version 3.3.5.
- Mitigation: To make the fix effective for existing CODESYS projects, the user also must adjust the version of the OSCAT Basic library to be used in the Library Manager of the CODESYS project to Version 3.3.5.0. Then the user must update the CODESYS application on the PLC by download or online change and rebuild/download the boot application.
- Mitigation: Without an update, the vulnerability can be prevented by validating all values in the PLC program before they are passed to the affected function. In particular, negative values must be blocked as function parameters of MONTH_TO_STRING.
- Mitigation: Regardless of whether the OSCAT Basic library in the programming system was updated or the security vulnerability in the PLC program was mitigated, a download or online change must be performed to update the application on the PLC. CODESYS reminds users to rebuild/download the boot project.
- Mitigation: For more information see the associated CERT@VDE security advisory.
- Mitigation: For a list of system environments the library has been validated against see OSCAT's library documentation.
Source: ICSA-24-326-02
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2024-6876 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-224666-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| Published | 2024-09-10 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.