High
Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-100504
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:21 UTC · Revision 1
Source evidence
Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128
core-osv · Original sourcePublished 26 Sept 2026, 00:36 UTC
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.
osv:CVE-2026-100504
Complete source record
{
"id": "de6990fff87957a13009d00ed839464c07690cb1d8a19b4dd1bbc733063633da",
"url": "https://osv.dev/vulnerability/CVE-2026-100504",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128",
"summary": "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.",
"evidence": "osv:CVE-2026-100504",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-100504",
"aliases": [
"CVE-2026-100504"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nationalsecurityagency/ghidra",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6babe3c1cec7f5ec920dd16cdc86a02893e5b33c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nsa:ghidra:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "12.1.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6babe3c1cec7f5ec920dd16cdc86a02893e5b33c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"Ghidra_10.3_build",
"Ghidra_9.0.1_build"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100504.json"
}
}
],
"modified": "2026-10-28T02:30:23.359063976Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100504.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-100504",
"https://www.vulncheck.com/advisories/ghidra-through-12.1.4-stack-based-buffer-overflow-via-leftshift128",
"https://github.com/NationalSecurityAgency/ghidra/commit/6babe3c1cec7f5ec920dd16cdc86a02893e5b33c",
"https://github.com/NationalSecurityAgency/ghidra",
"https://github.com/NationalSecurityAgency/ghidra/blob/8b6bbb857accdfa20dc5b2f5dea471178c2e9fbc/Ghidra/Features/Decompiler/src/decompile/cpp/multiprecision.cc#L29-L61",
"https://github.com/NationalSecurityAgency/ghidra/blob/8b6bbb857accdfa20dc5b2f5dea471178c2e9fbc/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc#L7848-L7878"
],
"provider_metadata": {
"cwe_ids": [
"CWE-787"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100504.json"
}
},
"related_cves": [
{
"value": "CVE-2026-100504",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 489787,
"published_at": "2026-09-26T00:36:32.604+00:00"
}