CVE-2025-58450 pREST has Systemic SQL Injection Vulnerability
Attackers can execute arbitrary SQL commands via injection in pREST, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-58450?
CVE-2025-58450 is a critical SQL injection vulnerability in prest, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
pREST (PostgreSQL REST), is an API that delivers an application on top of a Postgres database. SQL injection is possible in versions prior to 2.0.0-rc3. The validation present in versions prior to 2.0.0-rc3 does not provide adequate protection from injection attempts. Version 2.0.0-rc3 contains a patch to mitigate such attempts.
Weakness: CWE-89
Which versions are affected by CVE-2025-58450?
4 open source packages ship an affected version, including github.com/prest/prest/v2 and github.com/prest/prest.
| Package | Affected | Fixed in |
|---|---|---|
github.com/prest/prest/v2 Go | All versions | None |
github.com/prest/prest/v2 Go | All versions | None |
github.com/prest/prest/v2 Go | All versions | None |
github.com/prest/prest Go | All versions | None |
How do I fix CVE-2025-58450?
Upgrade to a fixed version.
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-58450 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58450 exists.
Sources
Also known as GHSA-p46v-f2x8-qp98, GO-2025-3941.