SQL Injection Vulnerability in Ghidra by National Security Agency
CVE-2026-49498

8.7HIGH

Key Information:

Status
Vendor
CVE Published:
10 June 2026

What is CVE-2026-49498?

Ghidra versions prior to 12.1 are susceptible to a SQL injection flaw in the changePassword() method of PostgresFunctionDatabase. This issue arises from the failure to escape double quotes in usernames when interpolated into ALTER ROLE statements. An authenticated attacker can exploit this vulnerability by sending specially crafted username parameters within PasswordChange network messages, ultimately escalating their privileges to that of a PostgreSQL superuser, thereby gaining unauthorized control over the database.

Affected Version(s)

ghidra 11.0 < 12.1

ghidra 12.1

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Sean Nejad (@allsmog)
.