Skip to content

Cybersecurity

CVE-2020-8809/8810 - remote code execution in Gurux GXDLMS Director

Vulnerabilities in a DLMS/COSEM energy meter management tool: code download without integrity verification and path traversal that together lead to code execution on the workstation.

Józef SulwińskiJózef Sulwiński

Published Updated 5 min read

CVEDLMS/COSEMsmart meteringRCEpath traversalvulnerability research
CVE-2020-8809/8810 - remote code execution in Gurux GXDLMS Director
Contents
  1. Discovered vulnerabilities
  2. Attack chain
  3. Reproduction
  4. Impact
  5. Remediation
  6. Acknowledgments
  7. Where we help
  8. Sources

The workstation from which an administrator manages energy meters downloaded updates for its program over an unencrypted HTTP connection. Anyone on the network path between the workstation and the server could replace the downloaded files and execute code on the workstation. The NVD records show that:

  • CVE-2020-8809 affects GXDLMS Director before version 8.5.1905.1301, and CVE-2020-8810 affects versions through 8.5.1905.1301 inclusive,
  • both records carry a CVSS score of 8.1, which assumes that the attacker sits on the victim’s network path,
  • the CISA Known Exploited Vulnerabilities catalog lists neither of them.

GXDLMS Director is an open-source Windows program for communicating with energy meters over the DLMS/COSEM protocol.

Discovered vulnerabilities

CVE-2020-8809 - code download without integrity verification

Parameter Value
CVE ID CVE-2020-8809
Product Gurux GXDLMS Director (versions before 8.5.1905.1301 according to NVD)
Type CWE-494: Download of Code Without Integrity Check
CVSS 3.1 8.1 (high)

The update mechanism for add-ins and OBIS codes uses unencrypted HTTP. An attacker in a man-in-the-middle position, for example the operator of a rogue Wi-Fi network, modifies the content of gurux.fi/obis/files.xml and gurux.fi/updates/updates.xml. The program then offers the user an update, and the attacker can change the downloaded files.

The outcome depends on the type of file:

  • For add-ins, if the user uses them, replacing the file leads to code execution.
  • For OBIS codes, code execution requires combining the flaw with CVE-2020-8810.

CVE-2020-8810 - path traversal in OBIS code download

Parameter Value
CVE ID CVE-2020-8810
Product Gurux GXDLMS Director (versions through 8.5.1905.1301 inclusive according to NVD; the SEQRED write-up states all versions)
Type CWE-22: Path Traversal according to NVD (SEQRED write-up: CWE-23)
CVSS 3.1 8.1 (high)

The program does not check whether downloaded files are genuine OBIS codes, or whether their paths stay inside the target directory. An attacker who exploited CVE-2020-8809 can therefore send an executable file and place it in an autorun directory, or place DLLs in the program’s installation directory. The code runs at the next system or program start. The attack also works when the user has no add-ins.

Attack chain

Combining both vulnerabilities gives a complete code execution chain:

  1. The attacker takes a man-in-the-middle position on the network where the GXDLMS Director workstation operates.
  2. The attacker changes the HTTP response for gurux.fi/obis/files.xml so that the program reports an available OBIS code update.
  3. The user downloads the update. The user always needs OBIS codes, because the program cannot communicate with meters without them.
  4. The attacker returns files with paths that leave the target directory and places the payload in an autorun directory.
  5. The code runs at the next system or program start.

NOTE

OBIS codes (Object Identification System) are definitions specific to individual meter models, needed to communicate with them.

Reproduction

The description below comes from the SEQRED team’s 2020 repository and requires a vulnerable program version in an isolated test environment. The Gurux server now redirects the HTTP address to HTTPS, and the entries in its files.xml file use a different format from the one described. This server state does not prove a fix in the program.

  1. Start an HTTP server and create a directory called obis in its root directory.
  2. In obis, create a files.xml file with one entry whose content is a path leaving the target directory:
<files>
  <file modified="28-09-2099" name="Iskraemeco">../../../../../../../../../../Users/Public/Documents/test.txt</file>
</files>
  1. Create a Users/Public/Documents directory with a test.txt file.
  2. On a Windows machine, add a line to the hosts file that points the name gurux.fi to the test server’s address.
  3. Start GXDLMS Director and accept the update.
  4. Check that the file C:\Users\Public\Documents\test.txt exists.

Impact

Code execution on the workstation gives the attacker access to whatever the program user’s account can reach, including the program’s configuration and the connections to the meters the workstation serves. The attack requires a man-in-the-middle position on the workstation’s network, which is why CVSS rates the attack complexity as high. The NVD records do not describe consequences for the meters themselves or for the operator’s OT network.

Remediation

The sources do not name a version that fixes CVE-2020-8810. The NVD range covers versions through 8.5.1905.1301 inclusive, while the SEQRED write-up states all versions. The current program version should be installed, because versions through 8.5.1905.1301 are covered by the NVD records, and it should be checked in a test environment before use with meters.

Additionally:

  • Workstations with meter management tools should be isolated in a separate network zone, because the attack requires a man-in-the-middle position on the workstation’s network.
  • HTTP traffic from these workstations to the internet should be monitored, because the vulnerable mechanism downloads files over an unencrypted connection.
  • The account running the program should not have administrative privileges, because the executed code inherits that account’s privileges.

Acknowledgments

Maciej Miszczyk of SEQRED discovered the vulnerabilities during OT tool security research.

Where we help

During penetration testing and an OT security assessment, the SEQRED team examines tools and devices used to operate energy meters. To start a conversation, use the contact form.

Sources

  1. CVE-2020-8809 - NVD - NIST (accessed: )
  2. CVE-2020-8810 - NVD - NIST (accessed: )
  3. gxdlmsdirector-cve - description and reproduction - SEQRED (accessed: )
  4. OBIS code file list on the Gurux server - Gurux (accessed: )
  5. Known Exploited Vulnerabilities Catalog (release 2026.11.18) - CISA (accessed: )

Need help in this area?

Our experts will help you assess the risk and plan next steps.

Talk to an expert

We'll discuss scope, methodology, and timeline.

Book a call