{"id":"CVE-2026-100504","revision":"bc24d08c5b074486937a4d048b778d1d","records":[{"revision":"bc24d08c5b074486937a4d048b778d1d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-100504","aliases":[],"title":"Ghidra through 12.1.4 Stack-based Buffer Overflow via leftshift128","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.","state":0,"publishedAt":"2026-09-26T00:36:32.604+00:00","modifiedAt":"2026-10-22T09:48:43.541+00:00","affected":[{"ecosystem":"Vendor product","name":"ghidra","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"NationalSecurityAgency\",\n                    \"product\": \"ghidra\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:github/nationalsecurityagency/ghidra\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThanOrEqual\": \"12.1.4\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/NationalSecurityAgency/ghidra\"\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":7.3,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7,"severity":"HIGH"}],"references":["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","https://www.vulncheck.com/advisories/ghidra-through-12.1.4-stack-based-buffer-overflow-via-leftshift128"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-100504","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-100504","identifiers":["CVE-2026-100504"]},"retained":false,"historicalAffected":[]}],"coverage":[]}