CVE-2026-18718

Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State

State
Published
Severity
7.1 High
Published
Aug 3, 2026
Updated
Sep 24, 2026
Reserved
Aug 3, 2026

Read the record on cve.org

Description

Ghidra contains an arbitrary code execution vulnerability in the Swift demangler analyzer that allows an attacker to execute arbitrary binaries by supplying a malicious Ghidra project with a crafted Swift tool directory path. When a victim opens the attacker-supplied project, SwiftDemanglerAnalyzer restores the persisted Swift binary directory from project state and SwiftNativeDemangler executes the resolved binary without integrity or signature verification, causing attacker-controlled executables to run under the Ghidra process user with no prompt or confirmation.

Scores

CVSSScoreVectorSource
4.07.1 HighCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HVulnCheck

Weaknesses

  • CWE-427 Uncontrolled Search Path Element

Affected Products

ProductVersions
GhidraNational Security Agency
  • before 12.1.2Affected
  • 12.1.3Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.