(Pwn2Own) Kepware KEPServerEX Stack-based Buffer Overflow Remote Code Execution Vulnerability

October 21st, 2022

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Kepware KEPServerEX. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of text encoding conversions. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of SYSTEM.

Additional Details

Kepware has issued an update to correct this vulnerability. More details can be found at:
https://www.cisa.gov/uscert/ics/advisories/icsa-22-242-10

Disclosure Timeline

  • 2022-08-18 - Vulnerability reported to vendor
  • 2022-10-21 - Coordinated public release of advisory

Credit

Vera Mens, Uri Katz, Sharon Brizinov of Claroty Research

Back to Advisories