Skip to main content

Ghidra CVE-2026-49496

| EUVDEUVD-2026-36005 MEDIUM
Use After Free (CWE-416)
2026-06-10 VulnCheck
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft binary triggering vector reallocation
  2. Delivery
    Deliver binary to reverse engineer or pipeline
  3. Exploit
    Analyst opens binary in Ghidra or SLEIGH consumer
  4. Execution
    PcodeCacher::allocateInstruction reallocates issued vector
  5. Persist
    SleighBuilder::generatePointerAdd dereferences stale iterator
  6. Impact
    Heap-use-after-free causes crash or memory corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must supply a malicious binary that, when processed by the SLEIGH disassembler, causes PcodeCacher::allocateInstruction to reallocate the issued vector while SleighBuilder::generatePointerAdd holds a live iterator into it - the triggering condition is the specific sequence of P-code instruction allocation that crosses a vector growth boundary. The victim must locally decompile or disassemble this binary using Ghidra or an application linked against the SLEIGH C++ library that calls Sleigh::oneInstruction (UI:P - passive interaction: opening the file is sufficient, no additional user steps required). No system privileges are required of the attacker (PR:N in CVSS v4.0), and no special network configuration is needed since the attack vector is local (AV:L). Exploitation is limited by: (1) the local attack vector - the malicious binary must reach and be processed on the victim's machine; (2) the requirement that the target uses a Ghidra version prior to 12.1 or an unpatched SLEIGH library consumer; and (3) the absence of confirmed exploit code, which raises the skill bar for reliable heap-layout manipulation beyond a simple crash.

Impact

The CVSS v4.0 base score of 6.9 is driven by VA:H (high availability impact - likely a crash) tempered by AV:L (local attack vector), AT:N (no special attack prerequisites), PR:N (no privileges required of the attacker), and UI:P (passive user interaction required - the analyst must open and decompile the malicious binary). The local attack vector materially limits exposure: exploitation requires the victim to process attacker-controlled input on their own workstation, which is nonetheless a realistic workflow for reverse engineers regularly opening untrusted binaries. The VI:L (low integrity impact) may indicate controlled memory writes are possible in limited cases, but VC:N rules out direct data exfiltration. This vulnerability is not in the CISA KEV catalog and no public exploit or POC has been identified at time of analysis, placing practical exploitation probability low. EPSS data was not provided. The primary real-world risk is denial of service against a reverse engineer's tooling session, with a secondary concern around memory corruption primitives that a sophisticated attacker might chain toward code execution - though no such scenario is confirmed. Overall, this is a medium-priority patch target for organizations operating reverse engineering pipelines that ingest untrusted binaries, and a higher-priority patch for teams exposing SLEIGH as a library service.

Exploit ScenarioDerived

An attacker embeds a crafted binary - designed so that its instruction stream causes PcodeCacher::allocateInstruction to reallocate the issued vector mid-operation - and delivers it to a reverse engineer or an automated malware analysis pipeline running a vulnerable version of Ghidra or a SLEIGH-consuming tool. When the analyst opens the binary and triggers decompilation, the heap-use-after-free fires in SleighBuilder::generatePointerAdd, crashing the Ghidra session or corrupting heap state. No public POC exists at time of analysis, but the vulnerability is reachable through a documented public API, lowering the bar for targeted exploit development.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 10, 2026

Heap-use-after-free in Ghidra's SLEIGH disassembler engine allows an attacker to cause memory corruption or application crash by supplying a crafted binary for decompilation. All Ghidra releases prior to 12.1 are affected, as is any downstream application consuming the SLEIGH library via the public Sleigh::oneInstruction C++ API. The CVSS v4.0 score of 6.9 reflects a high availability impact (VA:H) with low integrity impact (VI:L) and no confidentiality impact; no public exploit has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade to Ghidra 12.1 or later; vendor patch is confirmed available. The specific upstream fix is commit 8a3018d5efcb07d2ec40bacdd6063cb6f01c8edf, which addresses the iterator invalidation in PcodeCacher::allocateInstruction. Full advisory details are at https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-gqh9-2c72-wpjc. For downstream SLEIGH library consumers who cannot immediately update, a compensating control is to validate and sandbox all untrusted binaries before passing them to the Sleigh::oneInstruction API - for example, running decompilation of untrusted inputs in an isolated process or container so that a crash or memory corruption does not affect the host analyst environment. This isolation approach does not prevent the vulnerability from triggering but limits blast radius to the sandboxed process. Note that the exact patched release version was stated as 12.1 in the CVE description but has not been independently confirmed against a tagged GitHub release at time of analysis.

Affected VersionsENISA

Ghidra 0 <12.1

Affected Packages

euvd ghidra fix: 12.1

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 NSA's open-source reverse engineering framework whose core disassembly and decompilation engine is built on the SLEIGH processor specification language. The vulnerability resides in SleighBuilder::generatePointerAdd (CWE-416, Use After Free): when PcodeCacher::allocateInstruction needs to grow the internal 'issued' vector of P-code instructions, standard C++ vector reallocation moves the backing storage to a new memory address, invalidating all existing iterators and pointers into that vector. Code in SleighBuilder::generatePointerAdd that holds a live iterator or pointer into 'issued' before the reallocation then dereferences freed memory after the reallocation occurs. Because this code path is reachable through the public Sleigh::oneInstruction C++ API, any library consumer - not only the Ghidra GUI - is exposed. The CPE string cpe:2.3:a:nationalsecurityagency:ghidra:*:*:*:*:*:*:*:* confirms all versions are affected until the 12.1 boundary.

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 10, 2026 - 14:22 NVD
6.1 (MEDIUM) 6.9 (MEDIUM)

DescriptionCVE.org

Ghidra before 12.1 contains a heap-use-after-free vulnerability in SleighBuilder::generatePointerAdd caused by iterator invalidation when PcodeCacher::allocateInstruction reallocates the issued vector. Attackers can trigger memory corruption by decompiling malicious binaries through the public Sleigh::oneInstruction C++ API, affecting downstream SLEIGH library consumers.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Ghidra

View all
CVE-2023-22671 CRITICAL POC
9.8 Jan 06

Ghidra/RuntimeScripts/Linux/support/launch.sh in NSA Ghidra through 10.2.2 passes user-provided input into eval, leading

CVE-2019-16941 CRITICAL POC
9.8 Sep 28

NSA Ghidra through 9.0.4, when experimental mode is enabled, allows arbitrary code execution if the Read XML Files featu

CVE-2019-13625 CRITICAL POC
9.1 Jul 17

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

CVE-2019-17665 HIGH POC
7.8 Oct 16

NSA Ghidra before 9.0.2 is vulnerable to DLL hijacking because it loads jansi.dll from the current working directory. Ra

CVE-2019-13623 HIGH POC
7.8 Jul 17

In NSA Ghidra before 9.1, path traversal can occur in RestoreTask.java (from the package ghidra.app.plugin.core.archive)

CVE-2026-4946 HIGH
8.8 Mar 29

Command injection in NSA Ghidra (versions before 12.0.3) executes arbitrary commands when analysts click on maliciously

CVE-2026-52758 HIGH
8.7 Jun 10

SQL injection in Ghidra's BSim binary-similarity component (versions before 12.1) allows authenticated remote attackers

CVE-2026-52754 HIGH
8.7 Jun 10

Authentication bypass in NSA Ghidra versions prior to 12.1 allows any holder of a valid CA-signed certificate to imperso

CVE-2026-49498 HIGH
8.7 Jun 10

SQL injection in Ghidra's PostgreSQL collaboration backend (versions 11.0 through pre-12.1) allows authenticated users t

CVE-2026-52751 HIGH
8.6 Jun 10

Remote code execution in NSA Ghidra before version 12.1 allows attackers to execute arbitrary commands when a user opens

CVE-2026-52750 HIGH
8.4 Jun 10

Command injection in Ghidra versions before 12.1 on Windows allows attackers to execute arbitrary OS commands under the

CVE-2026-52755 HIGH
8.4 Jun 10

Arbitrary file write in NSA's Ghidra reverse-engineering framework before version 12.0.4 allows attackers to escape the

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy