Security Advisory

CVE-2021-32983: Delta DIAEnergie Blind SQL Injection

Last updated:
  • CVE-2021-32983

CVE-2021-32983 is a blind SQL injection in Delta Electronics DIAEnergie 1.7.5 and prior. The keyword parameter of the /DataHandler/Handler_CFG.ashx endpoint goes into an SQL query unchecked, so an attacker with no login can run code as the Microsoft SQL Server service account. NVD and CISA score it 9.8; DIAEnergie 1.9 fixes it.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

3.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2021-32983 · Source: NVD

Affected components

ComponentCPEVersion range
Delta Electronics DIAEnergiecpe:2.3:a:deltaww:diaenergie:*:*:*:*:*:*:*:*1.7.5 and prior (CVE record, NVD up to and including 1.7.5); CISA ICSA-21-238-03 lists all versions prior to 1.9; fixed in 1.9 or later

What does this mean for affected devices?

NVD carries the CISA description: the application "does not properly validate the user-controlled value supplied through the parameter keyword before using it as part of an SQL query", and "a remote, unauthenticated attacker can exploit this issue to execute arbitrary code in the context of NT SERVICE\MSSQLSERVER". 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) and its CVSS v2 score is 10.0. CISA maps it to CWE-89. NVD's CPE covers DIAEnergie up to and including 1.7.5 (NVD, CVE record).

Which DIAEnergie versions are fixed?

CISA's ICSA-21-238-03 first appeared on 2021-08-26 and was updated on 2021-12-16 and 2022-03-22. It now lists 13 DIAEnergie CVEs, all reported by Michael Heinzl, and gives the affected range as all versions prior to 1.9; the CVE record and NVD's CPE still say 1.7.5 and prior. Delta fixed the reported flaws and recommends 1.9 or later. CISA reports no known public exploits specifically targeting these flaws and asks operators to keep control system hosts off the internet, behind firewalls and away from the business network.

How does it relate to the other DIAEnergie SQL injections?

The same 2021 advisory lists three more unauthenticated blind SQL injections with the same 9.8 score and the same NT SERVICE\MSSQLSERVER impact: CVE-2021-38390 in HandlerEnergyType.ashx (parameter egyid), CVE-2021-38391 in AM_Handler.ashx (parameter type) and CVE-2021-38393 in HandlerAlarmGroup.ashx (parameter agid). DIAEnergie 1.9 fixes all four. Later Delta advisories added more SQL injections in DIAEnergie, so 1.9 is a floor, not a target; the Delta Electronics guide lists them with their fixed versions. In the same release, CVE-2021-32955 (file upload) and CVE-2021-32967 (admin user creation) also need no login.

What should operators do?

Upgrade DIAEnergie, keep its web interface off the internet and the business network, and run the SQL Server service with the least privilege the product supports, because that service account is what the attacker gets. Similar SQL injection in OT software: CVE-2025-46268 in WebAccess/SCADA and CVE-2018-7841 in U.motion Builder.

CVE-2021-32983 is not in the CISA KEV catalog as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.03938, the 90.6th percentile, in the 2026-11-22 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is SQL injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix SQL injection, XSS, resource exhaustion and deserialization flaws in embedded firmware.

Evidence

  • NVD (read 2026-11-23): status Modified; published 2021-08-30; NVD Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and CVSS v2 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C; CWE-89 (ICS-CERT Secondary); CPE deltaww diaenergie up to and including 1.7.5. — NVD
  • CISA ICSA-21-238-03 CSAF (released 2021-08-26, Update A 2021-12-16, Update B 2022-03-22; CSAF title 'Update C'), read 2026-11-23: DIAEnergie all versions prior to 1.9; 13 CVEs including CVE-2021-32967 (CWE-288, 9.8), CVE-2021-32955 (CWE-434, 9.8), CVE-2021-32983 (CWE-89, 9.8, Handler_CFG.ashx parameter keyword, NT SERVICE\MSSQLSERVER); remediation upgrade to 1.9 or later; no known public exploits specifically target these; reported by Michael Heinzl. — CISA ICSA-21-238-03
  • CVE record (checked 2026-11-23): state PUBLISHED, CNA ICS-CERT (icscert), published 2021-08-30, no CNA CVSS score, CWE-89, DIAEnergie Version 1.7.5 and prior. — CVE.org
  • Not in the CISA KEV catalog, catalog version 2026.11.20, 1,790 entries, checked 2026-11-23. — CISA KEV
  • EPSS 0.03938, percentile 0.90648, dataset 2026-11-22, read 2026-11-23. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CISA ICSA-21-238-03: Delta Electronics DIAEnergie (CSAF)
  3. CVE.org record CVE-2021-32983
  4. CISA KEV
  5. FIRST EPSS

Frequently asked questions

Which DIAEnergie version fixes CVE-2021-32983?

Version 1.9 or later. CISA's ICSA-21-238-03 lists all versions prior to 1.9 as affected; the CVE record names 1.7.5 and prior.

Which endpoint and parameter are affected?

The keyword parameter of /DataHandler/Handler_CFG.ashx. CISA's advisory lists three sibling SQL injections in HandlerEnergyType.ashx, AM_Handler.ashx and HandlerAlarmGroup.ashx (CVE-2021-38390, 38391 and 38393).

What privileges does the attacker get?

Code execution in the context of NT SERVICE\MSSQLSERVER, the Microsoft SQL Server service account on the DIAEnergie host, without any login.

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

No, not as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS rates it 0.03938 (90.6th percentile) in the 2026-11-22 dataset.