OS Command Injection in Ghidra - CVE-2026-4946

 

OS Command Injection in Ghidra - CVE-2026-4946

Published: April 25, 2026


Vulnerability identifier: #VU127895
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-4946
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: National Security Agency
Affected software:
Ghidra

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper neutralization of special elements used in an os command in the @execute annotation handler when parsing binary-derived comments in the Listing view. A remote attacker can embed a crafted {@execute ...} annotation in a malicious binary to execute arbitrary code.

User interaction is required to click an auto-generated comment extracted from analyzed Mach-O CFString data.


How to mitigate CVE-2026-4946

Install security update from vendor's website.

Sources