CVE-2025-60798 phppgadmin contains a SQL injection vulnerability

Medium 6.5 Published Updated

An authenticated attacker can execute arbitrary SQL commands via the query parameter in display.php, potentially compromising the database.

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-2025-60798?

CVE-2025-60798 is a medium-severity SQL injection vulnerability in n/a, published on 20 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

phpPgAdmin 7.13.0 and earlier contains a SQL injection vulnerability in display.php at line 396. The application passes user-controlled input from $_REQUEST['query'] directly to the browseQuery function without proper sanitization. An authenticated attacker can exploit this vulnerability to execute arbitrary SQL commands through malicious query manipulation, potentially leading to complete database compromise.

Weakness: CWE-89

Which versions are affected by CVE-2025-60798?

2 open source packages ship an affected version, including phppgadmin/phppgadmin. It affects 1 product.

PackageAffectedFixed in
phppgadmin/phppgadmin PackagistAll versions to 7.13.0None
phppgadmin/phppgadmin PackagistAll versions to 7.13.0None

Products include Phppgadmin Project Phppgadmin.

How do I fix CVE-2025-60798?

No fix has been published for CVE-2025-60798 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-2025-60798 being exploited?

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

Sources

Also known as DEBIAN-CVE-2025-60798, GHSA-g6xh-wrpf-v6j6, UBUNTU-CVE-2025-60798.

Is CVE-2025-60798 in your software?

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

Check your SBOMs for free