Description
Ghidra versions through 12.1.4 contain a stack-based out-of-bounds write vulnerability in the decompiler's leftshift128 function when processing negative shift amounts from p-code. Attackers can craft malicious binaries with specific instruction sequences that trigger the overflow when decompiled, corrupting memory and potentially achieving code execution.
Published: 2026-09-26
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Stack-based Buffer Overflow leading to memory corruption and possible code execution
Action: Immediate Patch
AI Analysis

Impact

The flaw is located in the decompiler’s leftshift128 routine where a negative shift amount supplied by p-code allows an out‑of‑bounds write on the stack. Overwriting adjacent stack memory can corrupt control data and, if an attacker gains sufficient influence, may result in arbitrary code execution. The weakness is identified as CWE‑787, a classic buffer overflow defect.

Affected Systems

Ghidra supplied by the National Security Agency, version 12.1.4 and earlier, are impacted. No other versions or products are listed as affected.

Risk and Exploitability

The CVSS score of 7.3 indicates moderate to high severity. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, implying current lack of large‑scale exploitation reports. Attackers would need to create a malicious binary containing the specific instruction sequence that triggers the overflow when the decompiler processes it. The attack vector is local or remote depending on whether the decompiler is exposed to untrusted input, but it requires the decompiler to handle the crafted binary.

Generated by OpenCVE AI on September 26, 2026 at 03:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Ghidra to the latest release (≥13.0) in which the leftshift128 bug is fixed.
  • Configure the decompiler environment so that only trusted or signed binaries are decompiled and avoid automatically analyzing unknown binaries.
  • Restrict decompiler usage to a sandboxed or isolated environment to contain any potential memory corruption.

Generated by OpenCVE AI on September 26, 2026 at 03:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 28 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sat, 26 Sep 2026 08:30:00 +0000

Type Values Removed Values Added
First Time appeared Nationalsecurityagency
Nationalsecurityagency ghidra
Vendors & Products Nationalsecurityagency
Nationalsecurityagency ghidra

Sat, 26 Sep 2026 01:15:00 +0000

Type Values Removed Values Added
Description Ghidra versions through 12.1.4 contain a stack-based out-of-bounds write vulnerability in the decompiler's leftshift128 function when processing negative shift amounts from p-code. Attackers can craft malicious binaries with specific instruction sequences that trigger the overflow when decompiled, corrupting memory and potentially achieving code execution.
Title Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128
First Time appeared Nsa
Nsa ghidra
Weaknesses CWE-787
CPEs cpe:2.3:a:nsa:ghidra:*:*:*:*:*:*:*:*
Vendors & Products Nsa
Nsa ghidra
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nationalsecurityagency Ghidra
Nsa Ghidra
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T09:48:43.541Z

Reserved: 2026-09-25T22:14:36.046Z

Link: CVE-2026-100504

cve-icon Vulnrichment

Updated: 2026-09-28T17:40:28.480Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-26T01:17:00.043

Modified: 2026-10-08T16:30:04.767

Link: CVE-2026-100504

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T08:15:09Z

Weaknesses