Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| nationalsecurityagency / ghidra | affected 11.0 before 12.1; unaffected 12.1 |
CWE
CWE-89
References
- https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-vv7r-2rhf-5h7g
- https://www.vulncheck.com/advisories/ghidra-sql-injection-in-postgresql-password-change-via-unescaped-username
ADP enrichment
No English description supplied.
No references supplied.