Vulnerability · Published Sep 8, 2025 · Assigned by GitHub_M
CVE-2025-58450pREST has Systemic SQL Injection Vulnerability
Critical 9.3
In plain English
A critical-severity SQL injection in prest from prest. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities).
Severity (CVSS 4.0)9.3Critical
Exploit odds (30 days)0.4%top 61.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/prest/prest | no fix listed | GO-2025-3941 |
| Go | github.com/prest/prest/v2 | no fix listed | GHSA-p46v-f2x8-qp98 |
| Go | github.com/prest/prest/v2 | no fix listed | GO-2025-3941 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/prest/prest/security/advisories/GHSA-p46v-f2x8-qp98 x_refsource_CONFIRM
- https://github.com/prest/prest/commit/47d02b87842900f77d76fc694d9aa7e983b0711c x_refsource_MISC