Security Advisory

CVE-2014-0787: KingSCADA AEserver Stack Overflow RCE

Last updated:
  • CVE-2014-0787

CVE-2014-0787 is a stack-based buffer overflow in WellinTech KingSCADA, the HMI/SCADA suite, in all versions before 3.1.2.13. An unauthenticated remote attacker can send a crafted packet to the AEserver.exe alarm and event service and run code as SYSTEM. NVD and CISA score it CVSS v2 10.0. Install the WellinTech patch that brings KingSCADA to 3.1.2.13.

Vulnerability summary

CVSS base score

10

Critical severity

EPSS score (FIRST)

14.1%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2014-0787 · 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
WellinTech KingSCADAcpe:2.3:a:wellintech:kingscada:*:*:*:*:*:*:*:*All versions prior to 3.1.2.13 (CISA ICSA-14-098-02); NVD CPE: up to and including 3.1.2, and 3.1; fixed by the WellinTech patch to 3.1.2.13

What does this mean for affected devices?

NVD describes it as a "stack-based buffer overflow in WellinTech KingSCADA before 3.1.2.13" that "allows remote attackers to execute arbitrary code via a crafted packet." CISA classifies it as CWE-121, stack-based buffer overflow, and NVD as CWE-119. The record was assigned by ICS-CERT and published on 2014-04-12 (NVD, CVE record).

How severe is CVE-2014-0787?

NVD's Primary score is CVSS v2 10.0, AV:N/AC:L/Au:N/C:C/I:C/A:C, and the CNA score in the CVE record is the same 10.0. The Zero Day Initiative's ZDI-14-071 explains the root cause: the protocol parser in kxNetDispose.dll, loaded by the AEserver.exe service on TCP port 12401, does arithmetic on a user-supplied size, and an integer wrap leads to a stack overflow. No authentication is needed and code runs as SYSTEM. ZDI reported it to WellinTech on 2014-02-25 and published on 2014-04-10, crediting an anonymous researcher.

Which KingSCADA versions are affected and what fixes it?

CISA's ICSA-14-098-02, released on 2014-04-08, lists all KingSCADA versions before 3.1.2.13. WellinTech issued a patch with installation instructions; the advisory CSAF points to the vendor download page. CISA describes WellinTech as a Beijing-based automation software firm whose KingSCADA is used in energy, water and wastewater, commercial facilities and other sectors. Beyond the patch, keep the SCADA server off the internet, filter TCP 12401 to the operator stations that need alarm data, and isolate the control network from the business network. An earlier advisory, ICSA-13-344-01, covered two other KingSCADA flaws (CVE-2013-2826 and CVE-2013-2827). The memory corruption fix guide covers the code-level class, and the OT security guide for small manufacturers covers the network controls.

Is CVE-2014-0787 exploited?

CISA said no public exploit was known when it published, though NVD's references now include a public exploit database entry. CVE-2014-0787 is not in the CISA KEV catalog as of 2026-11-27 (catalog version 2026.11.25, 1,805 entries). FIRST EPSS gives it 0.14144, the 97.23rd percentile, in the 2026-11-26 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-27): status Modified; published 2014-04-12; NVD Primary CVSS v2 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C; ICS-CERT Secondary 10.0; CWE-119 (NVD), CWE-121 (ICS-CERT); CPE kingscada up to including 3.1.2 and 3.1; references include an exploit-db entry. — NVD
  • CISA ICSA-14-098-02 CSAF (read 2026-11-27): KingSCADA <v3.1.2.13; CWE-121; CVSS v2 10.0; WellinTech created a patch and installation instructions available on its web site. — CISA ICSA-14-098-02
  • CISA advisory page (read 2026-11-27 via a page fetch): released April 8, 2014; anonymous researcher with HP's Zero Day Initiative; SEH overwrite, code execution as the running user; WellinTech Beijing-based; Energy, Water and Wastewater Systems, Commercial Facilities sectors; no known public exploits at publication. — CISA
  • ZDI-14-071 (read 2026-11-27): WellinTech KingScada AEserver.exe RCE; CVSS 10.0; flaw in protocol parsing in kxNetDispose.dll; AEserver.exe listens on port 12401; integer wrap causes stack buffer overflow; unauthenticated; SYSTEM; reported 2014-02-25, public 2014-04-10; credit Anonymous. — Zero Day Initiative
  • CVE record (read 2026-11-27): CNA ICS-CERT; title WellinTech KingSCADA Stack-based Buffer Overflow; CNA CVSS v2 10.0. — CVE.org
  • Not in the CISA KEV catalog, catalog version 2026.11.25, 1,805 entries, checked 2026-11-27. — CISA KEV
  • EPSS 0.14144, percentile 0.97234, dataset 2026-11-26, read 2026-11-27. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CISA ICSA-14-098-02: WellinTech KingSCADA Stack-Based Buffer Overflow (CSAF)
  3. CISA ICSA-14-098-02 advisory page
  4. Zero Day Initiative ZDI-14-071: WellinTech KingScada AEserver.exe Remote Code Execution
  5. CVE.org record CVE-2014-0787 (CVE Services JSON)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which KingSCADA version fixes CVE-2014-0787?

KingSCADA 3.1.2.13. CISA lists all versions before 3.1.2.13 as affected, and WellinTech published a patch with installation instructions.

Does CVE-2014-0787 need authentication?

No. ZDI-14-071 says the flaw is in the protocol parser of the AEserver.exe service on TCP port 12401 and that no authentication is needed; successful exploitation runs code as SYSTEM.

What can I do if I cannot patch KingSCADA right away?

Keep the KingSCADA server off the internet, restrict TCP 12401 to the hosts that need alarm and event data, and separate the control network from the business network with a firewall, as CISA recommends.

Is CVE-2014-0787 in the CISA KEV catalog?

No, not as of 2026-11-27 (catalog version 2026.11.25, 1,805 entries). FIRST EPSS rates it 0.14144 (97.23rd percentile) in the 2026-11-26 dataset.