8.7high
Ghidra 11.0 < 12.1 - SQL Injection in PostgreSQL Password Change via Unescaped Username
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nationalsecurityagency ghidra | from 11.0 before 12.1 Not affected: 12.1 | CVE List |
| nsa ghidra | from 11.0 before 12.1 | NVD |
All scores
| VulnCheck | 8.7high CVSS:4.0 | 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 |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Ghidra 11.0 anterior a 12.1 contiene una vulnerabilidad de inyección SQL en el método changePassword() de PostgresFunctionDatabase que no escapa las comillas dobles en nombres de usuario interpolados en sentencias ALTER ROLE. Atacantes autenticados pueden inyectar comandos SQL a través de parámetros de nombre de usuario manipulados en mensajes de red PasswordChange para escalar a privilegios de superusuario de PostgreSQL y obtener control total de la base de datos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49498 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-49498 changed 2026-10-26 | Public domain |