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

High 8.7 Published Updated

Authenticated attackers can inject SQL via crafted usernames in Ghidra to escalate privileges to PostgreSQL superuser and gain full database control.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-49498?

CVE-2026-49498 is a high-severity SQL injection vulnerability in nationalsecurityagency ghidra, published on 10 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-89

Which versions are affected by CVE-2026-49498?

It affects 1 product.

Products include Nsa Ghidra.

How do I fix CVE-2026-49498?

No fix has been published for CVE-2026-49498 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-49498 being exploited?

There is no known exploitation of CVE-2026-49498 in the wild and no public exploit code.

Sources

Also known as GHSA-vv7r-2rhf-5h7g.

Is CVE-2026-49498 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free