Skip to main content

CVE-2024-0394: Rapid7 Minerva Armor Privilege Escalation

CVE-2024-0394 is a privilege escalation vulnerability in Rapid7 Minerva Armor affecting versions below 4.5.5. Attackers can exploit OpenSSL configuration to gain SYSTEM privileges and execute arbitrary code.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-0394 Overview

CVE-2024-0394 is a local privilege escalation vulnerability affecting Rapid7 Minerva Armor versions below 4.5.5. The flaw stems from the product's implementation of OpenSSL's OPENSSLDIR parameter, which points to a filesystem path writable by low-privileged users. An authenticated attacker can place malicious OpenSSL configuration or library files in that location and have them loaded by a Minerva Armor process running as SYSTEM. The result is arbitrary code execution with SYSTEM privileges on affected Windows endpoints. Rapid7 remediated the issue in Minerva Armor version 4.5.5.

Critical Impact

A local, authenticated attacker can escalate from a low-privileged account to SYSTEM by abusing a user-writable OPENSSLDIR path, leading to full compromise of the host.

Affected Products

  • Rapid7 Minerva Armor versions prior to 4.5.5
  • Windows endpoints with Minerva Armor agent installed
  • Environments relying on Minerva Armor for anti-evasion and endpoint hardening

Discovery Timeline

  • 2024-04-03 - CVE-2024-0394 published to NVD
  • 2024-04-03 - Rapid7 publishes advisory blog post on the vulnerability
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-0394

Vulnerability Analysis

The vulnerability is a Windows privilege escalation issue classified under [CWE-862] Missing Authorization. Minerva Armor ships with an OpenSSL build whose OPENSSLDIR compile-time parameter resolves to a directory accessible to standard users. OpenSSL consults OPENSSLDIR at runtime to locate its configuration file (openssl.cnf) and engine modules. When a Minerva Armor service process running as SYSTEM initializes OpenSSL, it reads these files from the attacker-controlled path. The attacker gains code execution in the context of the privileged process without needing to bypass any authentication beyond local interactive logon.

Root Cause

The root cause is an insecure default path for OPENSSLDIR baked into the OpenSSL binaries shipped with Minerva Armor. The directory inherits permissions that allow low-privileged users to create or modify files inside it. Because OpenSSL blindly loads its configuration and engine DLLs from this path, write access becomes equivalent to code execution in any process that links the library.

Attack Vector

Exploitation requires local, authenticated access to a system running a vulnerable Minerva Armor version. The attacker writes a crafted openssl.cnf that references a malicious engine DLL, or drops a DLL that OpenSSL will search for, into the writable OPENSSLDIR location. When the Minerva Armor SYSTEM process next initializes OpenSSL, it loads the attacker's configuration and executes the engine code at high integrity. This yields full SYSTEM-level code execution and allows the attacker to disable security tooling, install persistence, or pivot. Technical specifics and proof-of-concept details are published in the Rapid7 advisory blog post.

Detection Methods for CVE-2024-0394

Indicators of Compromise

  • Unexpected openssl.cnf files or OpenSSL engine DLLs appearing in the Minerva Armor OPENSSLDIR path on disk
  • Minerva Armor service processes loading unsigned or non-Rapid7 DLLs from user-writable directories
  • Child processes spawned by Minerva Armor service binaries running as SYSTEM with unusual command lines

Detection Strategies

  • Monitor file-write events to the Minerva Armor installation and OpenSSL configuration directories by non-SYSTEM, non-Administrator principals
  • Alert on image loads of DLLs from user-writable paths into processes signed by Rapid7 or Minerva
  • Baseline Minerva Armor process behavior and flag deviations such as new child processes or outbound network connections

Monitoring Recommendations

  • Enable Windows Sysmon Event ID 11 (FileCreate) and Event ID 7 (ImageLoad) for Minerva Armor directories
  • Correlate low-privileged user activity with subsequent SYSTEM-context process launches
  • Review endpoint telemetry for installations of Minerva Armor below version 4.5.5

How to Mitigate CVE-2024-0394

Immediate Actions Required

  • Upgrade all Minerva Armor installations to version 4.5.5 or later
  • Inventory Windows endpoints for the installed Minerva Armor version and prioritize unpatched hosts
  • Audit the Minerva Armor OPENSSLDIR path for unauthorized files and remove any that are not vendor-supplied

Patch Information

Rapid7 fixed the vulnerability in Minerva Armor version 4.5.5 by correcting the OPENSSLDIR configuration so OpenSSL no longer loads configuration or engine files from a user-writable location. See the Rapid7 Blog Post on CVE-2024-0394 for full remediation details.

Workarounds

  • Restrict NTFS permissions on the Minerva Armor OpenSSL configuration directory to Administrators and SYSTEM only until the patch is applied
  • Enforce application control policies that block unsigned DLL loads into Minerva Armor service processes
  • Limit interactive logon on servers running Minerva Armor to reduce the pool of users who could stage the attack

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.