CVE-2021-31728

HIGH EXPLOITED

MalwareFox AntiMalware <2.74.0.150 - Privilege Escalation

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2021-31728 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 2 public exploits from researchers including irql.

AI-analyzed exploit summary This repository contains functional exploit code for CVE-2021-31728, demonstrating arbitrary ring 0 code execution via IOCTL abuse in MalwareFox AntiMalware's zam64.sys/zam32.sys driver. The PoC includes detailed technical analysis and working C code for both disk read/write and kernel execution exploits.

Description

Incorrect access control in zam64.sys, zam32.sys in MalwareFox AntiMalware 2.74.0.150 allows a non-privileged process to open a handle to \.\ZemanaAntiMalware, register itself with the driver by sending IOCTL 0x80002010, allocate executable memory using a flaw in IOCTL 0x80002040, install a hook with IOCTL 0x80002044 and execute the executable memory using this hook with IOCTL 0x80002014 or 0x80002018, this exposes ring 0 code execution in the context of the driver allowing the non-privileged process to elevate privileges.

Exploits (2)

nomisec WORKING POC 91 stars
by irql · poc
https://github.com/irql/CVE-2021-31728

This repository contains functional exploit code for CVE-2021-31728, demonstrating arbitrary ring 0 code execution via IOCTL abuse in MalwareFox AntiMalware's zam64.sys/zam32.sys driver. The PoC includes detailed technical analysis and working C code for both disk read/write and kernel execution exploits.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: MalwareFox AntiMalware 2.74.0.150
No auth needed
Prerequisites: Local access to the system · MalwareFox AntiMalware 2.74.0.150 installed
devstral-2 · analyzed Feb 18, 2026 Full analysis →
inthewild WORKING POC
poc
https://github.com/irql0/cve-2021-31728

This repository contains functional exploit code for CVE-2021-31728, demonstrating arbitrary ring 0 code execution via IOCTL abuse in MalwareFox AntiMalware's driver. The PoC includes detailed technical analysis and two separate exploits: one for disk read/write and another for kernel execution.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: MalwareFox AntiMalware 2.74.0.150
No auth needed
Prerequisites: Local access to a system with MalwareFox AntiMalware 2.74.0.150 installed · Ability to open a handle to \\.\ZemanaAntiMalware
devstral-2 · analyzed Feb 23, 2026 Full analysis →

References (1)

Core 1

Scores

CVSS v3 7.8
EPSS 0.0965
EPSS Percentile 93.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

VulnCheck KEV 2025-06-05
Status published
Products (1)
malwarefox/antimalware 2.74.0.150
Published May 17, 2021
Tracked Since Feb 18, 2026