SQL Injection Affecting github.com/prest/prest/adapters/postgres package, versions <2.0.0-rc3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMPRESTPRESTADAPTERSPOSTGRES-12704826
  • published17 Sept 2025
  • disclosed8 Sept 2025
  • creditViktor Chuchurski

Introduced: 8 Sep 2025

NewCVE-2025-58450  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/prest/prest/adapters/postgres to version 2.0.0-rc3 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via improper handling of user-supplied input in the SelectSQL process and other query construction logic. An attacker can execute arbitrary SQL commands on the underlying database by supplying crafted values in HTTP request parameters, potentially leading to unauthorized data access, modification, or exposure of sensitive files. This is only exploitable if the application is deployed with endpoints exposed to untrusted users and input validation is not sufficiently restrictive.

References

CVSS Base Scores

version 4.0
version 3.1