CVE-2026-49498

Ghidra 11.0 < 12.1 - SQL Injection in PostgreSQL Password Change via Unescaped Username

Published Jun 10, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 9:33 PM
Reserved
May 31, 2026, 11:54 AM
Status
Analyzed
Published
Jun 10, 2026, 2:16 PM
Modified
Oct 26, 2026, 11:10 AM