{"id":"CVE-2026-100504","published":"2026-09-26T00:36:32Z","modified":"2026-10-22T09:48:43Z","title":"Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128","vendor":"NationalSecurityAgency","product":"ghidra","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00157,"percentile":0.04836,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/NationalSecurityAgency/ghidra/commit/6babe3c1cec7f5ec920dd16cdc86a02893e5b33c","tags":["patch"]},{"url":"https://github.com/NationalSecurityAgency/ghidra","tags":["product"]},{"url":"https://github.com/NationalSecurityAgency/ghidra/blob/8b6bbb857accdfa20dc5b2f5dea471178c2e9fbc/Ghidra/Features/Decompiler/src/decompile/cpp/multiprecision.cc#L29-L61","tags":["technical-description"]},{"url":"https://github.com/NationalSecurityAgency/ghidra/blob/8b6bbb857accdfa20dc5b2f5dea471178c2e9fbc/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc#L7848-L7878","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/ghidra-through-12.1.4-stack-based-buffer-overflow-via-leftshift128","tags":["third-party-advisory"]}],"priority":{"score":5.9,"factors":[{"name":"EPSS percentile","points":0.97},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"nationalsecurityagency","affectedVersions":[{"vendor":"NationalSecurityAgency","product":"ghidra","versions":["<= 12.1.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-28T17:40:22.713904Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-87373","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nationalsecurityagency-ghidra-cve-2026-100503","parents":[{"from":"CVE-2026-100503","to":"CVE-2026-100504","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc","Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.hh"],"commits":["https://github.com/NationalSecurityAgency/ghidra/commit/5ef1ee4d7a25a65db195f3a70f681ca74440be61","https://github.com/NationalSecurityAgency/ghidra/commit/6babe3c1cec7f5ec920dd16cdc86a02893e5b33c"],"basis":"shared function","functions":["applyOp","getOpList"]}]}]}}