CVE-2026-52750
Description
Ghidra before 12.1 contains a command injection vulnerability in URL annotation handling on Windows where cmd.exe metacharacters are not properly escaped. Attackers can execute arbitrary commands under the Ghidra user's privileges by embedding malicious URLs in program comments that victims click.
Affected products
1- Range: <12.1
Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"cmd.exe metacharacters are not properly escaped when handling URL annotations on Windows."
Attack vector
An attacker can embed a malicious URL within program comments in a Ghidra project. When a victim clicks this URL annotation, the unescaped URL is passed to cmd.exe, which re-parses the command line. This allows for arbitrary command execution under the privileges of the Ghidra user on Windows systems [ref_id=1]. Exploitation requires user interaction (a click) and does not need prior authentication or access to the victim's machine [ref_id=1].
Affected code
The vulnerability lies in Ghidra's handling of URL annotations on Windows. Specifically, the `Runtime.getRuntime().exec(String[])` sink is reached via `BrowserLoader.java` and `URLAnnotatedStringHandler.java` [ref_id=1]. The default browser launch configuration on Windows uses `cmd.exe /c start <URL>`, and the URL string is passed verbatim without proper escaping of cmd metacharacters [ref_id=1].
What the fix does
The advisory recommends upgrading to Ghidra 12.1 or later. For users on older versions, the remediation is to avoid clicking URL annotations from untrusted program databases. The patch details are not provided in the bundle, but the vulnerability is addressed by properly escaping metacharacters that could be interpreted by cmd.exe [ref_id=1].
Preconditions
- configThe affected system must be running Windows with Ghidra's default browser-launch configuration (cmd.exe /c start).
- inputThe Ghidra project or program must contain a maliciously crafted URL annotation.
Generated on Jun 10, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
2News mentions
1- National Security Agency's Ghidra: 15 Vulnerabilities Disclosed on June 10, 2026Vypr Intelligence · Jun 10, 2026