Executive brief
Ghidra is a software reverse engineering suite used by security researchers to analyze binary code. A vulnerability in its BSim component—which helps find similar code across different programs—allows an attacker to execute unauthorized database commands. This could lead to the theft, modification, or deletion of sensitive analysis data stored in the organization's shared PostgreSQL database.
Technical details
A SQL injection vulnerability exists in Ghidra's BSim component due to improper neutralization of user-supplied input in BSimFilterType.java. Specifically, filter types such as ExecutableName, PathStarts, and NotExecutableName concatenate XML-sourced values directly into SQL strings without using prepared statements or escaping. An attacker with network access to the BSim server and low-level privileges can send crafted XML messages via the BSim network query protocol to execute arbitrary SQL commands. This allows for full unauthorized access to the underlying PostgreSQL database, including data exfiltration and modification. The issue is addressed in Ghidra version 12.1.
Affected products
- NSA Ghidra 11.0 to 12.0.x
Timeline
- 2026-05-14: advisory: Vendor advisory GHSA-8r4f-65cr-fwxm published
- 2026-06-10: disclosed: CVE-2026-52758 published to NVD
- 2026-06-10: patched: Fix confirmed in version 12.1