SecPod

Learn Search

Search across all Learn content

← Back to Security Research
ALERT: Active Exploitation: Windows Elevation of Privilege Vulnerability (CVE-2019-0859)

ALERT: Active Exploitation: Windows Elevation of Privilege Vulnerability (CVE-2019-0859)

Apr 21, 2019By Vidita V Koushik3 min read

While we all breathed a sigh of relief after patching our systems against the two zero-days reported in the April Patch Tuesday, news broke out that one of them was actively exploited inthe wild and could allow an attacker to completely compromise your system. This is another case of win32k.sys in jeopardy. This is about Windows Active Exploitation.

This vulnerability, assigned with CVE-2019-0859, was reported by Vasiliy Berdnikov and Boris Larin of the Kaspersky Labs. This is an elevation of privilege vulnerability caused due to improper handling of objects in the memory by Win32k component. A vulnerability management tool can remediate this critical vulnerability. Successful exploitation allows an attacker to run arbitrary code in kernel mode. This could be further used to view, change, or delete data, install programs or create new accounts with full user rights. Consequentially, backdoors which connect back the attackers can be established on vulnerable systems.

Researchers believe that this vulnerability has been a new addition in the campaigns carried out by APT groups such as SandCat and FruityArmor. Auto patching used to patch vulnerabilities.

Technical Details on Windows Active Exploitation

In order to exploit this vulnerability, an attacker would first logged on to the system. He can then gain elevated privileges step by step. Two points help better understand this use-after free vulnerability

  • Function ID: The windows in win32k.sys kernel have a tagWND structure with a Function ID called the ‘fnid‘ field. The classes of a window such as ScrollBar, Menu, Desktop, etc defined using this field.
  • Creation of windows: Execution of CreateWindowEx function sends a WM_NCCREATE message for creation of a Window prior to WM_CREATE message. A custom callback set using the SetWindowsHookEx to handle the WM_NCCREATE message before calling the window procedure.

An attacker gains control of a freed memory block in the following way. The Function ID of a window set to 0 during the WM_NCCREATE callback which allows an attacker to set extra data for the window. Also, the address for the window procedure changed. The window procedure next changes to the menu window procedure executing xxxMenuWindowProc and setting the Function ID to FNID_MENU. But, the extra data manipulated prior to setting Function ID. This can force stop the xxxMenuWindowProc function from initializing a menu and return FALSE. At this juncture, sending the NCCREATE message considered as a failure and CreateWindowEx function stops execution with a call to FreeWindow. As a result, an address memory block is freed and an attacker can gain control over this.

An attacker who can now execute arbitrary code in kernel mode, runs a malicious file using the PowerShell framework with a Base64 encoded command. Execution of the command leads to the download of a second-stage script from https//pastebin.com. This script in turn executes the third stage PowerShell script. Finally, a trivial HTTP reverse shell created to gain full control of the system.

Affected Systems

Windows 10
Windows 7
Windows 8.1
Windows Server 2008
Windows Server 2008 R2
Windows Server 2012
Windows Server 2012 R2
Windows Server 2016
Windows Server 2019

ImpactCVE-2019-0859 is an elevation of privilege vulnerability allowing an attacker to run arbitrary code in kernel mode. This permits an attacker to take control of an entire system.

Solution
Please refer this KB article.

Featured Posts

Open StyleSmuggler: Inside the Unpatched Magento Zero-Day Backdooring Live Stores
StyleSmuggler: Inside the Unpatched Magento Zero-Day Backdooring Live Stores

CVE Research

StyleSmuggler: Inside the Unpatched Magento Zero-Day Backdooring Live Stores

StyleSmuggler, an unpatched Magento and Adobe Commerce flaw letting attackers execute code without authentication via log poisoning, installing a persistent Linux backdoor that has already compromised live stores with no vendor patch available.

Sep 7, 2026

Open CVE-2026-6471: 12-Year-Old PostgreSQL PostGREShell Flaw Enables Server Takeover
CVE-2026-6471: 12-Year-Old PostgreSQL PostGREShell Vulnerability

CVE Research

CVE-2026-6471: 12-Year-Old PostgreSQL PostGREShell Flaw Enables Server Takeover

Sep 7, 2026

Open Root-Level RCE Flaw in Cisco Nexus 9000 Series Switches Exposes Networks to Complete Compromise — CVE-2026-20212
Root-Level RCE Flaw in Cisco Nexus 9000 Series Switches Exposes Networks to Complete Compromise — CVE-2026-20212

CVE Research

Root-Level RCE Flaw in Cisco Nexus 9000 Series Switches Exposes Networks to Complete Compromise — CVE-2026-20212

CVE-2026-20212 is a critical vulnerability in Cisco Nexus 9000 Series Switches that use Silicon One ASICs. It allows an unauthenticated remote attacker to execute code with root privileges by sending crafted input to TCP ports 43210 and 43211, which are reachable in the default Layer 3 VRF. Exploitation can also crash the S1HAL process and force a device reload. This article covers how the vulnerability works, the affected product identifiers, its potential impact, available workarounds, and how to identify fixed software using the Cisco Software Checker.

Sep 4, 2026

Open SonicWall SMA 1000 Under Active Attack: Two Zero-Days Enable SSRF and Remote Code Execution
SonicWall SMA 1000 Under Active Attack: Two Zero-Days Enable SSRF and Remote Code Execution

CVE Research

SonicWall SMA 1000 Under Active Attack: Two Zero-Days Enable SSRF and Remote Code Execution

Sep 3, 2026