CVE-2026-52758: NSA Ghidra SQL injection in BSim search filters

CVE-2026-52758 · Severity: high · CVSS 8.8 · Published 2026-06-10

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.

Quick answers

Is CVE-2026-52758 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-52758 being exploited in the wild.
How severe is CVE-2026-52758?
High severity, with a CVSS score of 8.8, published 10 June 2026.
Which products and versions are affected?
NSA Ghidra 11.0 to 12.0.x.
Is there a fix for CVE-2026-52758?
A patch was published on 2026-06-10: Fix confirmed in version 12.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-52758 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-52758?
Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

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

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.