Security Advisory

CVE-2021-38404: Delta DOPSoft 2 Project File Heap Overflow

Last updated:
  • CVE-2021-38404

CVE-2021-38404 is a heap-based buffer overflow in Delta Electronics DOPSoft 2, the HMI screen editor, triggered when the software parses a crafted project file. Opening such a file can run attacker code on the engineering workstation. NVD scores it 7.8. Versions 2.00.07 and prior are affected, and Delta will not fix it because DOPSoft 2 is end of life.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

1.0%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2021-38404 · 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.

Affected components

ComponentCPEVersion range
Delta Electronics DOPSoft 2cpe:2.3:a:deltaww:dopsoft:*:*:*:*:*:*:*:*2.00 through 2.00.07 (NVD); 2.00.07 and prior (CISA ICSA-21-252-02); end of life, no fix, move to DIAScreen

What does this mean for affected devices?

CISA's advisory ICSA-21-252-02, published on 9 September 2021, says DOPSoft 2 "lacks proper validation of user-supplied data when parsing specific project files", which "could result in a heap-based buffer overflow" that an attacker could use "to execute code in the context of the current process" (CISA CSAF ICSA-21-252-02). The weakness is CWE-122, heap-based buffer overflow, as assigned by CISA ICS, the CNA. The NVD record was published on 2021-09-17 (NVD).

How severe is CVE-2021-38404?

NVD's Primary score is CVSS v3.1 7.8, CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, the same vector CISA calculated. The attack is local and needs a user to open the file, but the result is full code execution under that user's account. NVD also keeps a Primary CVSS v2 score of 6.8 (AV:N/AC:M/Au:N/C:P/I:P/A:P). NVD's CPE data covers DOPSoft 2.00 through 2.00.07.

The flaw was reported through Trend Micro's Zero Day Initiative by the researcher kimiya. ZDI published it on 9 August 2021 as ZDI-21-951, a 0-day advisory issued after ICS-CERT asked for an extension; ZDI's write-up places the flaw in the parsing of XLS files and gives the same 7.8 score.

How do you fix it?

There is no patch. CISA states that DOPSoft 2 "will not receive an update to mitigate these vulnerabilities because it is an end-of-life product". Delta recommends moving HMI devices to the DOP-100 family and the editing software to DIAScreen in DIAStudio v1.1.2 or later. DIAScreen has had its own file-parsing CVEs since then, such as CVE-2024-7502, so install its current release. Until DOPSoft 2 is retired, open only project files from known sources and keep the workstation off networks it does not need. CISA's KEV entry for the sibling flaw CVE-2021-38406 in the same advisory requires that the product be disconnected if still in use.

The Delta Electronics guide lists the DOPSoft, DIAScreen and WPLSoft file-parsing CVEs side by side, and the memory corruption fix guide explains how length checks prevent this class of bug.

CVE-2021-38404 is not in the CISA KEV catalog as of 2026-11-28 (catalog version 2026.11.27, 1,808 entries). FIRST EPSS gives it 0.01036, the 63.2nd percentile, in the 2026-11-27 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 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.

Evidence

  • NVD (read 2026-11-28): published 2021-09-17; status Modified; NVD Primary CVSS v3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; NVD Primary CVSS v2 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P; CISA ICS (CNA) Secondary 7.8 same v3.1 vector; CWE-122 from CISA ICS; CPE deltaww dopsoft 2.00 to 2.00.07 inclusive. — NVD
  • ICSA-21-252-02 (initial release 2021-09-09): DOPSoft 2 <= 2.00.07; CWE-122 heap-based buffer overflow parsing project files, CVSS v3 7.8; end of life, no update; Delta recommends DOP-100 family and DIAScreen in DIAStudio v1.1.2 or later; reported by kimiya via Trend Micro ZDI. — CISA CSAF
  • ZDI-21-951 (ZDI-CAN-13071), published 2021-08-09 as 0-day: DOPSoft XLS file parsing heap-based buffer overflow, CVSS 7.8, reported 2021-03-12, credit kimiya. — Zero Day Initiative
  • CVE record (checked 2026-11-28): PUBLISHED, CNA icscert, published 2021-09-17; DOPSoft 2 <= 2.00.07; solution: end of life, no update. — CVE Program
  • Not in the CISA KEV catalog, catalog version 2026.11.27, 1,808 entries, checked 2026-11-28. — CISA KEV
  • EPSS 0.01036, percentile 0.63169, dataset 2026-11-27, read 2026-11-28. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CISA ICSA-21-252-02: Delta Electronics DOPSoft 2 (CSAF)
  3. Zero Day Initiative ZDI-21-951: Delta DOPSoft XLS file parsing heap-based buffer overflow
  4. CVE Program record CVE-2021-38404 (CNA: CISA ICS)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which DOPSoft versions are affected by CVE-2021-38404?

DOPSoft 2 version 2.00.07 and prior, per CISA's ICSA-21-252-02 and the CVE record. NVD's CPE data covers 2.00 through 2.00.07.

Is there a DOPSoft 2 update for CVE-2021-38404?

No. CISA says DOPSoft 2 is end of life and will not receive an update. Delta recommends moving to DOP-100 HMIs and DIAScreen in DIAStudio v1.1.2 or later; use DIAScreen's current release.

Can CVE-2021-38404 be exploited over the network?

Not directly. The CVSS v3.1 vector is local with user interaction: someone has to open a crafted project file in DOPSoft 2. A file sent by email or placed on a shared drive is enough to reach that user.

Is CVE-2021-38404 in the CISA KEV catalog?

No, not as of 2026-11-28 (catalog version 2026.11.27). Its sibling CVE-2021-38406 from the same CISA advisory is listed. FIRST EPSS gives CVE-2021-38404 0.01036, the 63.2nd percentile, in the 2026-11-27 dataset.