Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft Mach-O binary with oversized ncmds value
-
DeliveryDisguise and deliver file to target analyst
-
ExploitAnalyst opens file in unpatched Ghidra
-
ExecutionMach-O parser allocates unbounded heap memory
-
PersistJVM heap exhausted
-
ImpactGhidra crashes, analysis session lost
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Exploitation requires active user interaction: a victim must explicitly open a specially crafted Mach-O binary file using a vulnerable Ghidra installation (UI:A per CVSS 4.0 vector). The attack vector is local (AV:L), meaning the attacker must first deliver the crafted file to the victim's filesystem through a separate channel (email attachment, download, shared sample repository). No host privileges are required (PR:N) - any user-level Ghidra session is sufficient. The vulnerability is scoped exclusively to the Mach-O parser and triggers only when loading a Mach-O format binary; other supported file formats (PE, ELF, etc.) are unaffected. Exploitation is further limited by impact scope: only availability is affected (JVM crash), with no pathway to code execution or data disclosure. The non-automated nature of the trigger (user must manually open the file) substantially reduces exploitability compared to server-side or background-processing vulnerabilities. |
| Impact | The CVSS 4.0 score of 6.7 reflects a moderate but constrained risk profile. The vector AV:L/AC:L/AT:N/PR:N/UI:A indicates a local attack requiring active user interaction - exploitation is gated by the victim deliberately opening a malicious file in Ghidra. Impact is strictly limited to availability (VA:H) with no confidentiality or integrity consequences (VC:N/VI:N), and no lateral scope impact (SC:N/SI:N/SA:N). No EPSS data was provided in the source intelligence. The absence of a CISA KEV listing and lack of any reported public exploit code indicate low exploitation pressure at this time. The realistic risk is targeted: a threat actor aiming to disrupt security researchers or reverse engineers - for example, embedding a malicious Mach-O in a malware sample distributed to analyst communities. For general enterprise environments not running Ghidra, this vulnerability is not applicable. |
| Exploit ScenarioDerived | An attacker crafts a minimal Mach-O file with the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
Uncontrolled heap memory allocation in Ghidra's Mach-O binary parser (versions before 12.1.1) allows denial of service by crashing the Ghidra JVM. The parser reads the ncmds load command count field directly from a Mach-O file header and uses it to drive heap allocation without cross-validating it against the actual file size, enabling a crafted binary to exhaust JVM memory. No public exploit has been identified at time of analysis and this vulnerability is not listed in the CISA KEV catalog, though the attack primitive is straightforward to reproduce from the description.
RemediationAI
Upgrade to Ghidra 12.1.1 or later, which introduces validation of the ncmds load command count against actual file size before performing heap allocation in the Mach-O parser. The authoritative patch advisory is the GitHub Security Advisory GHSA-v6c3-h9cp-3whf at https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-v6c3-h9cp-3whf. Prior to patching, the primary compensating control is operational: analysts should avoid opening Mach-O binaries from untrusted or adversarial sources on unpatched Ghidra installations. As a secondary control, running Ghidra inside a resource-constrained environment (e.g., a VM with a capped JVM heap via the -Xmx flag in launch.properties) limits the blast radius of a crash to that isolated session and avoids host-level memory exhaustion, though it does not prevent the JVM crash itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Ghidra is the NSA's open-source reverse engineering framework widely used by security researchers and malware analysts. The affected component is its Mach-O binary parser; Mach-O is the executable and object file format used on Apple platforms (macOS, iOS). The Mach-O header contains an ncmds field specifying the number of load commands that follow, which the parser uses to allocate data structures. CWE-789 (Uncontrolled Memory Allocation) describes exactly this root cause: user-controlled input directly controls the size of a memory allocation without bound-checking against a reliable constraint such as actual file size. The affected CPE is cpe:2.3:a:ghidra:ghidra:*:*:*:*:*:*:*:*, covering all Ghidra releases prior to 12.1.1.
Know when Ghidra gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Ghidra before 12.1.1 contains an uncontrolled memory allocation vulnerability in the Mach-O binary parser that allows attackers to cause denial of service. An attacker can supply a crafted Mach-O binary with an arbitrarily large ncmds load command count value, forcing the parser to allocate excessive heap memory without validating file size, crashing the Ghidra JVM.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Ghidra/RuntimeScripts/Linux/support/launch.sh in NSA Ghidra through 10.2.2 passes user-provided input into eval, leading
NSA Ghidra through 9.0.4, when experimental mode is enabled, allows arbitrary code execution if the Read XML Files featu
NSA Ghidra before 9.0.1 allows XXE when a project is opened or restored, or a tool is imported, as demonstrated by a pro
NSA Ghidra before 9.0.2 is vulnerable to DLL hijacking because it loads jansi.dll from the current working directory. Ra
In NSA Ghidra before 9.1, path traversal can occur in RestoreTask.java (from the package ghidra.app.plugin.core.archive)
Command injection in NSA Ghidra (versions before 12.0.3) executes arbitrary commands when analysts click on maliciously
SQL injection in Ghidra's BSim binary-similarity component (versions before 12.1) allows authenticated remote attackers
Authentication bypass in NSA Ghidra versions prior to 12.1 allows any holder of a valid CA-signed certificate to imperso
SQL injection in Ghidra's PostgreSQL collaboration backend (versions 11.0 through pre-12.1) allows authenticated users t
Remote code execution in NSA Ghidra before version 12.1 allows attackers to execute arbitrary commands when a user opens
Command injection in Ghidra versions before 12.1 on Windows allows attackers to execute arbitrary OS commands under the
Arbitrary file write in NSA's Ghidra reverse-engineering framework before version 12.0.4 allows attackers to escape the
EUVD-2026-36018
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB