Ghidra decompiler input injection in packed stream decoding
NationalSecurityAgency ghidra
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| NationalSecurityAgency ghidra |
| No fix yet |
Original description
Ghidra before 12.2 contains a numeric truncation vulnerability in PackedDecode::skipAttribute and skipAttributeRemaining in marshal.cc that stores 64-bit string lengths in 32-bit variables. Attackers can supply a crafted packed stream, such as a malicious .sla file, to inject attributes into the decompiler's input or crash the decompiler process.
From the CVE record · VulnCheck
References
- github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-v423-5vh7-c7jw
- github.com/NationalSecurityAgency/ghidra/commit/d105789b331dba84ad73ab92db890e38fe665be0Patch
- github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.2_build
- github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/Ghidra/Features/Decompiler/src/decompile/cpp/marshal.cc#L641-L671
- vulncheck.com/advisories/ghidra-before-12.2-integer-truncation-in-packeddecode-skipattribute-decompiler-parser
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116012.json
- nvd.nist.gov/vuln/detail/CVE-2026-116012
- github.com/NationalSecurityAgency/ghidra