Skip to main content
Vulnerability Database/CVE-2024-47195

CVE-2024-47195: Siemens ModelSim Privilege Escalation Flaw

CVE-2024-47195 is a privilege escalation vulnerability in Siemens ModelSim and Questa that enables authenticated local attackers to inject code and gain elevated privileges. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-47195 Overview

CVE-2024-47195 affects Siemens ModelSim and Questa simulation environments. The gdb.exe binary shipped with these products loads a specific executable file from the current working directory. An authenticated local attacker can plant a malicious executable in a user-writable directory. When an administrator or elevated process launches gdb.exe from that directory, the attacker's code runs with elevated privileges.

The flaw is categorized as an untrusted search path weakness [CWE-427]. Siemens addressed the issue in ModelSim and Questa version V2024.3.

Critical Impact

Local privilege escalation and arbitrary code execution when gdb.exe is launched from an attacker-controlled working directory by a privileged user or process.

Affected Products

  • Siemens ModelSim, all versions prior to V2024.3
  • Siemens Questa, all versions prior to V2024.3
  • Windows installations where gdb.exe is invoked from user-writable directories

Discovery Timeline

  • 2024-10-08 - CVE-2024-47195 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-47195

Vulnerability Analysis

The vulnerability resides in gdb.exe, the GNU Debugger binary bundled with ModelSim and Questa. On launch, gdb.exe resolves a specific executable file name without pinning it to a trusted installation path. The process searches the current working directory first and loads any matching file it finds.

An attacker with authenticated local access can drop a malicious binary matching the expected name into a directory they control. When a privileged user or scheduled process starts gdb.exe from that directory, the planted executable loads inside the privileged process context. Execution yields the privilege level of the invoking account, which enables lateral movement or persistence on engineering workstations.

The attack requires local access, low privileges, and user interaction such as an administrator opening a project folder before running the debugger.

Root Cause

The root cause is an untrusted search path [CWE-427]. The affected gdb.exe build does not use absolute paths or a hardened search order when locating a dependent executable. Windows resolves the file name against the current working directory, which users typically control for project files.

Attack Vector

Exploitation follows a well-known binary planting pattern:

  1. The attacker places a malicious executable with the expected name into a user-writable directory such as a shared project folder.
  2. A privileged user or automated job sets that directory as the current working directory.
  3. The user or process invokes gdb.exe from the ModelSim or Questa installation.
  4. gdb.exe resolves and executes the planted binary inside the privileged context.

No network access is required. See the Siemens Security Advisory SSA-426509 for vendor technical details.

Detection Methods for CVE-2024-47195

Indicators of Compromise

  • Unexpected executable files matching debugger-adjacent names in user-writable directories such as project workspaces, Downloads, or network shares.
  • gdb.exe process creation events where the parent working directory is not the ModelSim or Questa installation path.
  • Child processes spawned from gdb.exe that do not match expected debugger behavior.

Detection Strategies

  • Monitor Windows process creation events (Event ID 4688, Sysmon Event ID 1) for gdb.exe executions, capturing the CurrentDirectory field.
  • Alert when gdb.exe spawns child processes outside its installation directory or launches scripting hosts such as cmd.exe, powershell.exe, or wscript.exe.
  • Hunt for newly created executables in directories that commonly serve as current working directories for engineering users.

Monitoring Recommendations

  • Enable command-line and working directory logging across engineering workstations running ModelSim or Questa.
  • Baseline legitimate gdb.exe invocations and flag deviations in parent process, working directory, or file hash.
  • Forward process telemetry to a centralized SIEM or data lake for correlation across hosts.

How to Mitigate CVE-2024-47195

Immediate Actions Required

  • Upgrade Siemens ModelSim and Questa to V2024.3 or later on all engineering systems.
  • Audit directories where ModelSim or Questa users execute gdb.exe and remove any unauthorized executables.
  • Restrict administrative use of these tools to trusted installation directories until patching is complete.

Patch Information

Siemens released fixed builds in ModelSim V2024.3 and Questa V2024.3. Review the Siemens Security Advisory SSA-426509 for upgrade packages and additional guidance.

Workarounds

  • Launch gdb.exe only from the trusted ModelSim or Questa installation directory using fully qualified paths.
  • Prevent users from writing to directories that elevated processes use as a working directory.
  • Enforce application allowlisting so only signed binaries from the vendor installation path can execute as gdb.exe or its dependencies.
bash
# Example: launch gdb.exe with an explicit working directory in PowerShell
Start-Process -FilePath "C:\Siemens\ModelSim\win64\gdb.exe" `
              -WorkingDirectory "C:\Siemens\ModelSim\win64" `
              -ArgumentList "--version"

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.