Skip to content

prest

pREST _groupby function-expression SQL injection (incomplete fix of CVE-2025-58450)

CVE-2026-104129Published 19 Nov 2026, 18:49 UTC

Real-world risk

4.8/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

8.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

pREST (PostgreSQL REST) is an API that delivers an application on top of a Postgres database. Prior to 2.4.0, the vulnerable parameter is _groupby, handled by GroupByClause in adapters/postgres/postgres.go. adapters/postgres/postgres.go uses the weaker isSafeSQLExpression check for this function-expression branch instead of the stricter single-field validator used for _select. That check validates only the outer function name against a 13-function allowlist and permits nested subqueries, trailing UNION syntax, and inner pg_ functions. controllers/crud.go concatenates the GROUP BY expression while parameterizing only WHERE values, allowing attacker-controlled SQL structure into the clause. Default configuration permits unauthenticated access; a restricted installation may require a low-privilege table reader. UNION-based extraction requires compatible column counts and types and was not verified end to end, but a delay-producing function can cause denial of service without that alignment. This issue is fixed in 2.4.0.

Am I affected?

ProductAffected versions (from the sources)Fixed in
prestNiche< 2.4.02.4.0

What to do

Update to a fixed version: 2.4.0.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T4: Weaponized (× 1.00)

A Metasploit module, a Nuclei template, or a verified Exploit-DB entry

  • Nuclei scanner template (link)

EPSS 1.4% chance of exploitation in 30 days (percentile 73), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.600
  2. Threat T4: Weaponized1.000
  3. 10 × impact 0.8 × prerequisites 0.6 × threat 14.800
  4. Rounded to one decimal between 0.1 and 104.8

How the score works

Exploitation and evidence timeline

  1. 19 Nov 2026 Published
  2. 3 Dec 2026 Nuclei scanner template first seen
  3. 3 Dec 2026 Risk 4.8 (cvss fallback)

Weakness

CWE-89

References

Get alerts for prest

Free email or text alerts when a vulnerability in prest reaches risk 8 or higher. Nothing else.