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

EcosystemPackageFixed inAdvisory
Gogithub.com/prest/prestno fix listedGO-2025-3941
Gogithub.com/prest/prest/v2no fix listedGHSA-p46v-f2x8-qp98
Gogithub.com/prest/prest/v2no fix listedGO-2025-3941

Affected products (as reported)

VendorProductVersions
prest prest < 2.0.0-rc3

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