CVE-2026-100504

Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128

Published Sep 26, 2026 CVSS 4.0 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Nationalsecurityagency
Nationalsecurityagency ghidra
Vendors & Products Nationalsecurityagency
Nationalsecurityagency ghidra
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 22, 2026, 9:48 AM
Reserved
Sep 25, 2026, 10:14 PM
Status
Analyzed
Published
Sep 26, 2026, 1:17 AM
Modified
Oct 8, 2026, 4:30 PM