CVE-2026-52758: Ghidra < 12.1 - SQL Injection via Unescaped Filter Values in BSim Search
Ghidra before 12.1 contains a SQL injection vulnerability in BSim filter types that concatenate user-supplied values directly into SQL queries without escaping or parameterization. Remote attackers can inject arbitrary SQL via the BSim network query protocol to read, modify, or delete data in the PostgreSQL database.
Metrics
- CVSS v4.0
- 8.7
- Severity
- HIGH
- Fixed in
- 12.1
- Affected Products
- 1
HarborGuard Analysis
Synopsis
SQL injection in Ghidra's BSim search feature affects versions 11.0 through 12.1 (exclusive). The vulnerability is reachable over the network by any authenticated user with a low-privilege account, because BSim filter values are concatenated directly into SQL queries without escaping or parameterization. Successful exploitation gives an attacker full read, write, and delete access to the underlying PostgreSQL database. A patched-image rebuild at version 12.1 is available on HarborGuard for environments running an affected version.
HarborGuard Coverage
Detection capability is available across every HarborGuard environment: the CVE is ingested from upstream feeds within minutes of publication and matched against customer images, including custom-built images that package Ghidra. Any image running a Ghidra version in the 11.0 to pre-12.1 range is flagged automatically.
AvailableHarborGuard scores this finding at CVSS 8.7 (HIGH) and can weight it further against each customer's per-environment compliance policy before routing the alert to the appropriate team inbox within the customer org.
AvailableA patched-image rebuild at Ghidra 12.1 is available on HarborGuard for any environment found running an affected version. For customers with auto-remediation enabled, HarborGuard performs the rebuild, runs a regression test, and opens a pull request against affected workloads automatically.
AvailableExploit Conditions
- Network reachabilityRequired
The BSim query protocol is exposed over the network, so the attacker must be able to reach the service from a remote host.
- AuthenticationRequired
Any low-privilege account is sufficient; no admin or special permissions are needed to submit BSim filter queries.
- Victim interactionNot required
The attacker sends a crafted query directly to the BSim endpoint; no user action or social engineering is needed.
- Attack complexityDetail
Exploitation is reliable and condition-free: the injection point requires no special timing, memory layout knowledge, or environmental pre-conditions.
Blast Radius
- Reads arbitrary rows from the PostgreSQL database, including stored analysis results, project metadata, and any credentials or tokens persisted there.
- Modifies or overwrites persisted database rows, allowing an attacker to corrupt analysis data or tamper with stored binary function signatures.
- Deletes database records, permanently destroying BSim analysis history or other data stored in the PostgreSQL instance.
- All three impacts (confidentiality, integrity, availability) are rated HIGH, meaning a single injected query can chain read, write, and delete operations in one request.
How HarborGuard Handles This
Available on HarborGuard: detection for CVE-2026-52758 is active across all customer scan pipelines, matching images against the affected Ghidra version range (11.0 to pre-12.1) within minutes of each scan cycle. A patched-image rebuild at Ghidra 12.1 is available for any environment where an affected image is detected. For customers with auto-remediation enabled, HarborGuard triggers the rebuild, executes a regression run, and opens a pull request against affected workloads; median time from CVE publication to merged patch PR for high-severity issues is around 90 minutes in environments with auto-remediation enabled. Where compliance policy does not permit auto-remediation, the finding is routed to the configured team inbox with full CVSS context and a direct pointer to the 12.1 fix. As a compensating control before patching, customers can apply network policy to restrict access to the BSim port to trusted internal hosts only, reducing the pool of principals who can reach the injection point.
Fix available
- nationalsecurityagency / ghidra< 12.1 (from 11.0)Fixed in 12.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N