Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft binary with truncated multi-byte lead unit
-
DeliveryDeliver sample to analyst or analysis pipeline
-
ExploitVictim loads and decompiles in Ghidra
-
ExecutiongetCodepoint reads past buffer end
-
ImpactDecompiler crashes or leaks adjacent heap into output
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to open and decompile an attacker-crafted binary in a vulnerable Ghidra 11.2-12.1.4 install; the malicious file must contain constant byte stores ending in a multi-byte UTF-8/UTF-16/UTF-32 lead unit at the tail of a buffer so getCodepoint reads beyond the remaining buffer length. Limiting factors: the attack is local (AV:L) and needs user/pipeline interaction to load and decompile the sample (UI:P) - there is no remote or network-facing trigger; impact is capped at a decompiler crash or a small heap information leak into decompiled output (no code execution or write primitive). The precondition is easy to meet in malware-analysis workflows where hostile binaries are opened by design. |
| Impact | The CVSS 4.0 base score of 4.8 (MEDIUM) is consistent with the real-world risk: this is a heap out-of-bounds READ (CWE-125), not a write, so the ceiling is a decompiler crash (VA:L) or leakage of adjacent heap bytes into decompiled output (VC:L) - no code execution or integrity impact (VI:N/SI:N). The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P) correctly models the true attack path: exploitation is LOCAL and requires the analyst to load and decompile an attacker-crafted binary (UI:P/passive interaction), NOT a remote network reachable service - so despite PR:N (no authentication), it is not autonomously exploitable and requires victim action. No EPSS score, no CISA KEV listing, and no public POC are present in the provided data; combined with the low technical impact, this is a low-priority, defense-in-depth patch rather than an urgent fire. The main realistic concern is that malware analysts routinely open hostile samples in Ghidra, so the 'victim opens malicious file' precondition is unusually easy to satisfy in this product's typical use case - but the payoff (crash or small heap leak) is limited. Overall: a genuine but low-severity bug, correctly rated MEDIUM, not a high-CVSS/low-real-risk mismatch. |
| Exploit ScenarioDerived | A reverse engineer or automated malware-analysis pipeline loads an attacker-supplied binary into Ghidra and runs the decompiler. The binary contains constant byte stores ending in a multi-byte UTF-8/UTF-16/UTF-32 lead unit positioned at the end of a buffer, so StringManager::getCodepoint reads past the buffer end, crashing the decompiler or emitting adjacent heap contents into the decompiled listing. No public POC or active exploitation is identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 26, 2026
Heap out-of-bounds reads in Ghidra 11.2 through 12.1.4 allow an attacker who supplies a crafted binary to make the decompiler read past the end of a string buffer while decoding multi-byte UTF-8, UTF-16, or UTF-32 characters, resulting in a decompiler crash or the leakage of adjacent heap bytes into the decompiled output. The issue is local rather than network-facing: it requires the victim to load and decompile the malicious file (CVSS v4.0 AV:L/PR:N/UI:P, base 4.8 MEDIUM; independent assessment CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L), and the impact is capped at low confidentiality and low availability with no integrity or code-execution effect. There is no confirmed active exploitation (not in CISA KEV) and no public exploit code identified at time of analysis, though the precondition is trivially met in malware-analysis workflows where hostile binaries are opened by design; a vendor patch is available as an upstream commit.
RemediationAI
Apply the vendor fix: commit e37c57f3d9c29511a1860f0a735df53131d403d7 (https://github.com/NationalSecurityAgency/ghidra/commit/e37c57f3d9c29511a1860f0a735df53131d403d7) adds the remaining-buffer-length parameter and bounds checks to StringManager::getCodepoint() and updates all three call sites; patch status is "Upstream fix available (PR/commit); released patched version not independently confirmed," so confirm through the vendor advisory (https://www.vulncheck.com/advisories/ghidra-11.2-through-12.1.4-heap-out-of-bounds-read-via-stringmanager) which tagged Ghidra release contains this commit before upgrading, and prefer any build newer than 12.1.4 that includes it. Because no fixed release number is stated in the available data, the reliable near-term control is to avoid decompiling untrusted binaries with an unpatched 11.2-12.1.4 install: analyze hostile samples inside a disposable, network-isolated VM or container running with least privilege so a decompiler crash is contained (trade-off: added analysis friction and possible loss of unsaved state, but it neutralizes the availability impact). Treat decompiler output derived from untrusted binaries as potentially contaminated by leaked heap bytes - do not paste, screenshot, or share it outside the analysis enclave until a patched build is in use (trade-off: slows collaborative triage but prevents unintentional disclosure of adjacent heap memory). Restricting Ghidra to trusted inputs or disabling string rendering for untrusted samples is another compensating measure, at the cost of losing exactly the string analysis that malware triage depends on. Monitor for decompiler crashes on suspicious samples as a detection signal, since a crash is the most likely observable manifestation of this bug.
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
The flaw is a classic missing-length-check memory-safety bug (CWE-125, out-of-bounds read) in Ghidra's decompiler, written in C++ under Ghidra/Features/Decompiler/src/decompile/cpp. The static helper StringManager::getCodepoint() (see stringmanage.cc lines ~324-410) decodes a single Unicode codepoint from a byte buffer, branching on charsize to handle UTF-8, UTF-16 and UTF-32 encodings with big/little-endian handling. Previously the function received only a pointer and the character width, with no knowledge of how many bytes remained in the buffer, so a multi-byte lead unit (for example a UTF-8 lead byte indicating a 2-, 3-, or 4-byte sequence, or a UTF-16 surrogate) positioned at the very end of the buffer caused the decoder to read past the allocation. The fix in commit e37c57f3d9c29511a1860f0a735df53131d403d7 changes the signature to getCodepoint(const uint1 *buf, int4 len, int4 charsize, bool bigend, int4 &skip) and adds explicit guards (if (len < charsize) return -1; if (len < 2 / 3 / 4) return -1;) at each multi-byte branch; all call sites were updated to pass the remaining length (size-i or count-i), namely StringManager::writeUnicode(), StringManager::checkCharacters(), and PrintLanguage::escapeCharacterData() in printlanguage.cc. The CPE cpe:2.3:a:nationalsecurityagency:ghidra:*:*:*:*:*:*:*:* identifies the vendor/product (NSA-maintained Ghidra) but does not encode the version range, which comes from the description: 11.2 through 12.1.4.
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:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Local because an analyst must load the crafted file (AV:L, UI:R); no auth needed (PR:N); over-read yields limited heap disclosure (C:L) and decompiler crash (A:L), no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Ghidra versions 11.2 through 12.1.4 contain a heap out-of-bounds read vulnerability in StringManager::getCodepoint when decoding multi-byte UTF-8, UTF-16, or UTF-32 characters without validating remaining buffer length. Attackers can craft malicious binaries with constant byte stores ending in multi-byte lead units to trigger out-of-bounds reads that crash the decompiler or leak adjacent heap memory into decompiled output.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-87374
GHSA-4xhp-h6c8-q4h9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB