Security Advisory

CVE-2019-18858: CODESYS V3 Web Server Heap Overflow

Last updated:
  • CVE-2019-18858

CVE-2019-18858 is a heap-based buffer overflow in the web server of CODESYS V3 runtimes before 3.5.15.20, the component behind CODESYS WebVisu. Crafted requests can crash the web server or the whole runtime and may allow remote code execution. NVD scores it 9.8 and CODESYS 10.0. Festo CECC-S, CECC-LK and CECC-D controllers are fixed in firmware 2.4.2.0.

Need to know whether your firmware ships an affected version? Get a firmware scan report or contact us.

How severe is CVE-2019-18858?

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

2.3%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2019-18858 · Source: NVD

CVSS v3.1 severity rating scale: None 0.0, Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9, Critical 9.0 to 10.0
How a CVSS v3.1 base score maps to a severity rating. Source: FIRST CVSS v3.1 specification, section 5.

Which products and versions does CVE-2019-18858 affect?

ComponentCPEVersion range
CODESYS V3 runtimes with the web server (Control for BeagleBone, emPC-A/iMX6, IOT2000, Linux, PLCnext, PFC100, PFC200, Raspberry Pi; RTE V3; Win V3; HMI V3; Runtime System Toolkit; Embedded and Remote Target Visu Toolkits)cpe:2.3:a:codesys:control_for_linux:*:*:*:*:*:*:*:*All versions before 3.5.15.20; fixed in 3.5.15.20 (CODESYS Advisory 2019-10, NVD)
Festo Controller CECC-D (574415), CECC-LK (574418), CECC-S (574416)—Firmware 2.3.8.0 and 2.3.8.1 affected; fixed in 2.4.2.0 (FSA-202202 / VDE-2022-022, ICSA-25-273-04); no Festo CPE in NVD
Festo Automation Suite with bundled CODESYS Development System 3.0 or 3.5.16.10—Before 2.8.0.138 affected; fixed component CODESYS Development System 3.5.21.20 installed separately (FSA-202601, ICSA-26-076-01)

What does CVE-2019-18858 mean for affected devices?

The CVE record, assigned by MITRE and published on 2019-11-20, reads: "CODESYS 3 web server before 3.5.15.20, as distributed with CODESYS Control runtime systems, has a Buffer Overflow." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), with a CVSS v2 7.5 alongside, and NVD maps it to CWE-120, classic buffer overflow. The CVE record carries no CNA score (NVD, CVE.org record).

What does CODESYS say?

CODESYS Advisory 2019-10 (version 3.0 of 2019-12-18) calls it a heap-based buffer overflow in the web server components CmpWebServer and CmpWebServerHandler, which the CODESYS WebVisu uses to show visualization screens in a browser. Crafted requests "could crash the web server, lead to a denial-of-service condition or may be utilized for remote code execution", and because the web server runs inside the runtime, the whole runtime can be affected. CODESYS rates it critical with CVSS v3.0 10.0 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H); the changed scope is why its score is higher than NVD's. The advisory states that a proof of concept is publicly available and credits an OEM customer and Tenable, who reported it independently.

Every CODESYS V3 runtime with the web server before 3.5.15.20 is affected, regardless of CPU or operating system: CODESYS Control for BeagleBone, emPC-A/iMX6, IOT2000, Linux, PLCnext, PFC100, PFC200 and Raspberry Pi, Control RTE V3 (also for Beckhoff CX), Control Win V3, HMI V3, the Control V3 Runtime System Toolkit and the V3 Embedded and Remote Target Visu Toolkits. The fix is 3.5.15.20; CODESYS names no workaround. NVD's CPE list covers 14 of these products before 3.5.15.20.

Which Festo controllers are affected and how are they fixed?

Festo advisory FSA-202202 (VDE-2022-022, first published 2022-07-18, revised 2025-11-03) lists the CVE for the CECC-D, CECC-LK and CECC-S controllers on firmware 2.3.8.0 and 2.3.8.1, scored 9.8 with the NVD vector, and fixes it in firmware 2.4.2.0. CISA republished it as ICSA-25-273-04. Firmware 2.4.2.0 leaves 18 CODESYS CVEs open, including the later web server overflows CVE-2020-10245 and CVE-2021-33485, which FSA-202203 (VDE-2022-027) lists against 2.4.2.0. Until a hardware generation with a newer runtime is in place, Festo's advice is:

  • do not use the CODESYS web server of the web visualization;
  • restrict network access to PLCs with an active web server, and never expose a PLC to the internet;
  • limit the visualization screens served by WebVisu or Remote TargetVisu to those operators need;
  • activate the CODESYS device and visualization user management, with at least one administrator user.

Festo's FSA-202601 (CSAF, CISA ICSA-26-076-01) adds the CVE for Automation Suite before 2.8.0.138 with the bundled CODESYS Development System, whose Control Win V3 is part of the setup; from 2.8.0.138 owners install and patch CODESYS themselves.

The Festo CECC and CPX-CEC guide lists every CODESYS CVE on these controllers, the CODESYS runtime guide covers the web server flaws across vendors, and the memory corruption fix guide covers the defect class. The earlier stack overflow in the same component is CVE-2019-13548, fixed in 3.5.14.10.

CVE-2019-18858 is not in the CISA KEV catalog as of 2026-12-04 (catalog version 2026.12.03, 1,811 entries). FIRST EPSS gives it 0.02331, the 84.1st percentile, in the 2026-12-04 dataset (CISA KEV, FIRST EPSS).

Three signals on every advisory: CVSS says how severe the flaw is, EPSS gives the probability of exploitation in the wild in the next 30 days, and a CISA KEV listing means the flaw has been exploited in the wild
CVSS rates severity, EPSS estimates the likelihood of exploitation, and CISA KEV records exploitation seen in the wild. Source: FIRST EPSS; CISA KEV catalog.

How do the CVSS, EPSS and KEV signals for CVE-2019-18858 compare?

CVE-2019-18858 signals as recorded on this page, last checked .
SignalValue for CVE-2019-18858SourceWhat it tells you
CVSS base score9.8 (Critical)NVDHow severe the flaw is in its worst case, from 0.0 to 10.0; it says nothing about whether anyone is exploiting it.
EPSS probability2.3%FIRST EPSSThe probability that the CVE is exploited in the wild in the next 30 days.
CISA KEV listingNot listed as of 2026-12-04CISA KEV catalogA listing means CISA has reliable evidence of exploitation in the wild; BOD 22-01 sets a remediation due date for US federal civilian agencies.
Published2019-11-20NVDThe date the CVE record was first published in NVD.

How does the CVE-2019-18858 score change on your network?

A CVSS base score assumes the worst-case exposure. If the vulnerable interface on your device is reachable only from a local segment, or an attacker needs an account first, change those metrics below to see the re-scored base value. The FIRST CVSS v3.1 specification puts deployment-specific scoring in the Environmental metric group, so treat this as a quick what-if, not a replacement score.

Starting vector (matches the CVSS score above): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Quoted vector: 9.8 (Critical)

Your re-score: 9.8 (Critical)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.
From advisory to verified fix in four steps: read the advisory, find the affected component in the firmware SBOM, apply the fixed version or vendor mitigation, then re-scan the image to confirm the vulnerable version is gone
Read the advisory, find the component in your firmware SBOM, apply the fix, then re-scan to confirm it.

How do you check CVE-2019-18858 status from the command line?

These commands re-read the three public signals for CVE-2019-18858 (NVD, FIRST EPSS and the CISA KEV feed) so a build pipeline or a ticket can record the current values. They need curl and jq.

# NVD: CVSS metrics and record status (no API key: at most 5 requests per 30 s)
curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2019-18858" \
  | jq '.vulnerabilities[0].cve | {vulnStatus, metrics}'

# FIRST EPSS: today's exploitation probability and percentile
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2019-18858" | jq '.data[0]'

# CISA KEV: prints the catalog entry, or nothing if the CVE is not listed
curl -s https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json \
  | jq --arg id CVE-2019-18858 '.vulnerabilities[] | select(.cveID == $id)'

Which sources back each CVE-2019-18858 claim?

  • NVD (read 2026-12-04): status Modified; published 2019-11-20; NVD Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and v2 7.5; CWE-120; 14 CODESYS CPEs before 3.5.15.20. — NVD
  • CVE record (checked 2026-12-04): state PUBLISHED, CNA mitre, published 2019-11-20, no CNA metric. — CVE.org
  • CODESYS Advisory 2019-10 v3.0 (2019-12-18): heap-based buffer overflow in CmpWebServer/CmpWebServerHandler, all V3 runtimes with web server before V3.5.15.20, 15 products listed; CVSS v3.0 10.0 S:C; fixed V3.5.15.20; no workaround; POC publicly available; credit OEM customer and Tenable. — CODESYS Advisory 2019-10
  • Festo FSA-202202 / VDE-2022-022: CECC-D, -LK, -S firmware 2.3.8.0 and 2.3.8.1 affected, fixed 2.4.2.0, score 9.8; recommendations on web server, network access, visualization screens, user management. — CERT@VDE VDE-2022-022
  • Festo FSA-202203 / VDE-2022-027: 18 CODESYS CVEs including CVE-2020-10245 and CVE-2021-33485 still affect firmware 2.4.2.0; handled with next hardware generation. — CERT@VDE VDE-2022-027
  • CISA ICSA-25-273-04 lists CVE-2019-18858 for CECC firmware 2.3.8.0/2.3.8.1, fixed 2.4.2.0. — CISA ICSA-25-273-04
  • Festo FSA-202601 (2026-02-26) lists CVE-2019-18858 for Automation Suite before 2.8.0.138 with bundled CODESYS Development System. — Festo FSA-202601 CSAF
  • Not in the CISA KEV catalog, catalog version 2026.12.03, 1,811 entries, checked 2026-12-04. — CISA KEV
  • EPSS 0.02331, percentile 0.84093, dataset 2026-12-04, read 2026-12-04. — FIRST EPSS

Is your firmware affected by CVE-2019-18858?

Advisories in the same weakness class as CVE-2019-18858

Sources for CVE-2019-18858

  1. NVD
  2. CODESYS Advisory 2019-10: Security update for CODESYS V3 web server
  3. CERT@VDE VDE-2022-022 (Festo FSA-202202): CECC-S, LK, D family, CODESYS V3 runtime
  4. CERT@VDE VDE-2022-027 (Festo FSA-202203): CECC-S, LK, D firmware 2.4.2.0
  5. CISA CSAF: ICSA-25-273-04 Festo Controller CECC-S, -LK, -D Family Firmware
  6. Festo CSAF FSA-202601: CODESYS vulnerabilities in Festo Automation Suite
  7. CVE.org record CVE-2019-18858 (CNA: MITRE)
  8. CISA KEV
  9. FIRST EPSS

CVE-2019-18858: frequently asked questions

Which CODESYS version fixes CVE-2019-18858?

CODESYS V3 3.5.15.20, according to CODESYS Advisory 2019-10. Device makers ship the runtime in their own firmware, so check the vendor's firmware release rather than the CODESYS download.

Which Festo firmware fixes it?

Firmware 2.4.2.0 for CECC-D, CECC-LK and CECC-S, according to FSA-202202 (VDE-2022-022, CISA ICSA-25-273-04). That firmware still carries 18 other CODESYS CVEs, so Festo also asks owners not to use the CODESYS web server and to restrict network access.

Why do NVD and CODESYS score it differently?

NVD scores CVSS v3.1 9.8 with unchanged scope. CODESYS scores CVSS v3.0 10.0 with changed scope, because the web server runs inside the runtime and a fault there can affect the whole controller.

Is CVE-2019-18858 in the CISA KEV catalog?

No, not as of 2026-12-04 (catalog version 2026.12.03, 1,811 entries). FIRST EPSS rates it 0.02331 (84.1st percentile) in the 2026-12-04 dataset.