Description
Ghidra 11.0 before 12.1 contains a SQL injection vulnerability in the changePassword() method of PostgresFunctionDatabase that fails to escape double quotes in usernames interpolated into ALTER ROLE statements. Authenticated attackers can inject SQL commands via crafted username parameters in PasswordChange network messages to escalate to PostgreSQL superuser privileges and gain full database control.
Published: 2026-06-10
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is a classic SQL injection attack (CWE‑89) located in the changePassword() routine of Ghidra’s PostgreSQL database handler. When an authenticated user supplies a specially crafted username, the embedded double quotes are not escaped, allowing the attacker to insert arbitrary SQL into the ALTER ROLE command. This injection can be used to grant superuser privileges and ultimately provide full control over the PostgreSQL database. As a result, an attacker can compromise data confidentiality, integrity, and availability for the entire database instance.

Affected Systems

The vulnerability affects the National Security Agency’s Ghidra application, versions 11.0 through any release before 12.1. Users operating those versions with a PostgreSQL backend are at risk if the changePassword API is exposed to authenticated clients.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, and the vulnerability is not yet tracked in the CISA KEV list. Because the flaw is triggered by a network request that requires authentication, the likely attack vector is a credentialed attacker who can log into Ghidra and send a password‑change command as a normal user. While the EPSS score for this specific entry is not available, the fact that the flaw enables full superuser access means that, if exploited, the impact would be catastrophic for the database system. The vulnerability has no restrictions on the attack’s ability to send malicious SQL, so exploitation should be straightforward for anyone with network access to the Ghidra service and valid credentials.

Generated by OpenCVE AI on June 10, 2026 at 14:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Ghidra to version 12.1 or later, which contains the fixed changePassword() routine.
  • Reconfigure the PostgreSQL server so that the database user used by Ghidra does not have SUPERUSER privileges and limit role changes to a trusted administrative account.
  • Implement input validation or parameterized queries for any user‑supplied data that is incorporated into SQL statements, ensuring that usernames are properly sanitized prior to execution.

Generated by OpenCVE AI on June 10, 2026 at 14:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 10 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 10 Jun 2026 13:30:00 +0000

Type Values Removed Values Added
Description Ghidra 11.0 before 12.1 contains a SQL injection vulnerability in the changePassword() method of PostgresFunctionDatabase that fails to escape double quotes in usernames interpolated into ALTER ROLE statements. Authenticated attackers can inject SQL commands via crafted username parameters in PasswordChange network messages to escalate to PostgreSQL superuser privileges and gain full database control.
Title Ghidra 11.0 < 12.1 - SQL Injection in PostgreSQL Password Change via Unescaped Username
First Time appeared Nsa
Nsa ghidra
Weaknesses CWE-89
CPEs cpe:2.3:a:nsa:ghidra:*:*:*:*:*:*:*:*
Vendors & Products Nsa
Nsa ghidra
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-10T13:52:10.788Z

Reserved: 2026-05-31T11:54:34.994Z

Link: CVE-2026-49498

cve-icon Vulnrichment

Updated: 2026-06-10T13:52:07.205Z

cve-icon NVD

Status : Received

Published: 2026-06-10T14:16:34.777

Modified: 2026-06-10T14:16:34.777

Link: CVE-2026-49498

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T15:00:13Z

Weaknesses