Description
Ghidra before 12.1 contains a path traversal vulnerability in SameDirDebugInfoProvider that fails to validate filenames from ELF binary .gnu_debuglink sections before constructing file paths. Attackers can craft malicious ELF binaries with traversal sequences to probe filesystem existence and leak CRC32 hashes of arbitrary files during automatic DWARF analysis.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 12.1
12.1 (custom)
Credits
Donghwoo Cho
References
github.com/...ghidra/security/advisories/GHSA-57g6-7qw2-p5hx (GitHub Security Advisory (GHSA-57g6-7qw2-p5hx))
www.vulncheck.com/...in-dwarf-external-debug-file-resolution