Skip to main content

pREST CVE-2026-104129

| EUVDEUVD-2026-130531 HIGH
SQL Injection (CWE-89)
2026-11-19 GitHub_M GHSA-v9v2-98xq-627c
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted _groupby HTTP request
  2. Delivery
    Pass weak isSafeSQLExpression allowlist gate
  3. Exploit
    Inject nested subquery/UNION/pg_sleep into GROUP BY
  4. Execution
    Execute raw SQL against Postgres
  5. Impact
    Deny service via pg_sleep or attempt data read

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerable surface is the _groupby query parameter on the standard CRUD route (GET /{database}/{schema}/{table}), specifically a value containing balanced parentheses that GroupByClause (adapters/postgres/postgres.go:1946) routes to the raw-SQL-expression branch gated only by isSafeSQLExpression, which validates just the outer function name against a 13-function allowlist and permits nested (SELECT ...) subqueries, trailing UNION SELECT, and inner pg_ functions. In the DEFAULT configuration no authentication is required - only a table read-permission check stands in front, which default config leaves passable unauthenticated; a RESTRICTED installation requires a low-privilege reader of a single table. The pg_sleep denial-of-service primitive works unconditionally with no further prerequisites. What LIMITS exploitation: UNION-based data extraction requires compatible column counts and types and was not verified end to end; blind character-by-character extraction is constrained because commas are pre-split and '=', '<', '>' are blocked; the gate blocks ';', '--', '/*', unbalanced parens, and an outer pg_ prefix, so stacked statements and comment injection are not available via this path. Fixed by upgrading to 2.4.0.

Impact

CVSS 8.1 (High) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N frames this as a network-reachable, low-complexity SQL injection, and the vuln.today priority is 'this_week' rather than act_now/emergency. Signals are mixed and deserve scrutiny. First, a privilege conflict: the vendor vector encodes PR:L (authenticated low-privilege reader), but the description and GHSA advisory both state the flaw is reachable UNAUTHENTICATED in the default configuration - so for default deployments the effective privilege requirement is closer to PR:N, making the real-world exposure worse than the PR:L score implies. Second, an impact conflict: the vector rates C:H/I:H/A:N, yet the only primitive the researcher verified end-to-end is a pg_sleep-based denial of service (an AVAILABILITY impact the vector marks as N), while the C:H UNION-based data extraction was explicitly NOT verified end to end (needs column-count and type alignment) and I:H has no demonstrated write path because the gate blocks ';' (stacked queries). No CISA KEV listing and no EPSS score were provided, so there is no evidence of active or widespread exploitation; exploitation status is best described as a public PoC reference existing (payloads and an in-package Go test in the advisory) but not verified as working weaponized exploit code for data exfiltration. Net: this is a genuine, low-friction SQL injection worth prioritized patching - the reliable, unconditional DoS alone justifies it - but the headline C:H/I:H confidentiality/integrity severity rests on unverified UNION extraction, so it is a real priority tempered by unconfirmed worst-case impact rather than a confirmed mass-exploited emergency.

Exploit ScenarioDerived

An attacker sends a single crafted HTTP GET to a pREST endpoint with a malicious _groupby value such as _groupby=abs((SELECT 1 FROM pg_sleep(3))), which passes the weaker isSafeSQLExpression allowlist and is concatenated raw into the GROUP BY clause, forcing the Postgres backend to sleep and consume a connection - a reliable denial of service needing no column alignment. The same injection point can carry a trailing UNION SELECT to attempt reading other tables, though end-to-end exfiltration is unverified and constrained. A public PoC reference exists (advisory payloads plus a passing in-package Go test); it is not verified as a working data-exfiltration exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 public PoC Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

SQL injection in pREST's _groupby query parameter lets remote attackers place SQL structure into the GROUP BY clause, providing a reliable denial-of-service primitive through delay functions and potential data exposure when a UNION result can be aligned with the target query. Versions prior to 2.4.0 are affected; default deployments expose the CRUD route without authentication, while restricted deployments require a low-privilege reader of a single table. The issue is an incomplete-fix sibling to CVE-2025-58450, with a public advisory and upstream commits; no CISA KEV entry is present in the supplied data, and the advisory's example payloads are not confirmed as working public exploit code.

RemediationAI

Vendor-released patch: 2.4.0. Upgrade pREST to 2.4.0, which fixes the _groupby function-expression injection; see https://github.com/prest/prest/releases/tag/v2.4.0 and the advisory https://github.com/prest/prest/security/advisories/GHSA-v9v2-98xq-627c. The fix is reflected in PR https://github.com/prest/prest/pull/1014 and commits 084348fa82701b098492fc520557ff290b7691e2 and 73e4b2aea81e2dbd33942efcb1a313fe3b151a41. The advisory describes the complete remediation as routing _groupby through the same strict gate as _select or parameterizing or whitelisting group-by columns outright; until upgrading, restricted deployments that require a low-privilege table reader and do not permit unauthenticated access reduce exposure but do not address the SQL injection once a permitted reader sends the parameter.

Affected VersionsENISA

prest < 2.4.0

Affected Packages

go github.com/prest/prest no fix
go github.com/prest/prest/v2 fix: 2.4.0
euvd prest fix: 2.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pREST is a Go REST API that builds SQL from query parameters against PostgreSQL. CWE-89 arises because GroupByClause in adapters/postgres/postgres.go:1946 sends _groupby values containing balanced parentheses to a raw expression branch checked by isSafeSQLExpression, which validates only the outer function name against a 13-function allowlist and permits nested (SELECT ...) subqueries, trailing UNION SELECT syntax, and inner pg_ functions. The stricter sanitizeSelectField gate used for _select in v2.3.0 would reject those forms. controllers/crud.go concatenates the GROUP BY output into sqlSelect while parameterizing only WHERE values, so the injected SQL structure reaches execution. In the default configuration the route is reachable unauthenticated; restricted installations require a low-privilege table reader. The advisory author verified in-package Go tests accepting four payloads, including a pg_sleep denial-of-service primitive, but did not verify end-to-end UNION exfiltration because it requires compatible column counts and types; commas are pre-split and =, <, > are blocked, limiting blind extraction, while ;, --, /*, unbalanced parentheses and an outer pg_ prefix are rejected.

Know when Prest gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 8.2 HIGH

Default config is unauthenticated via one HTTP request (PR:N/AV:N/AC:L); C:H for plausible UNION reads, I:N as stacked writes are blocked, A:L for the confirmed pg_sleep DoS.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 20:04 EUVD
CVE Published
Nov 19, 2026 - 18:49 cve.org
HIGH 8.1

DescriptionCVE.org

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.

Technical POC Analysis

CWE-89 SQL injection in the groupby query parameter of pREST (github.com/prest/prest, Go).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 public PoC link from nuclei

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

The pREST API platform contains a high-severity SQL injection flaw in the _groupby parameter that could allow attackers to disrupt service availability or expose sensitive data. Organizations using pREST prior to version 2.4.0, particularly those with unauthenticated default deployments, are at risk and should prioritize remediation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; restrict access to the CRUD route to trusted networks, enforce authentication and least privilege, and monitor for suspicious GROUP BY queries.

Threat Model

4 threats: Information Disclosure, Denial of Service, Tampering

5-step attack chain with trust boundaries and controls

Full threat model - attack chain, trust boundaries, controls per stage and evidence - is part of the Pro and Business plans.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Low
niche open-source PostgreSQL REST tool, limited enterprise production footprint
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy