Description
Ghidra before 12.1.1 contains an uncontrolled memory allocation vulnerability in the Mach-O binary parser that allows attackers to cause denial of service. An attacker can supply a crafted Mach-O binary with an arbitrarily large ncmds load command count value, forcing the parser to allocate excessive heap memory without validating file size, crashing the Ghidra JVM.
Problem types
Memory Allocation with Excessive Size Value
Product status
Any version before 12.1.1
12.1.1 (semver)
Credits
kwenma (@nyst)
References
github.com/...ghidra/security/advisories/GHSA-v6c3-h9cp-3whf
github.com/...ghidra/security/advisories/GHSA-v6c3-h9cp-3whf (GitHub Security Advisory (GHSA-v6c3-h9cp-3whf))
www.vulncheck.com/...lled-memory-allocation-in-mach-o-parser