SQL Injection Vulnerability in pREST API by prest
CVE-2026-104129
What is CVE-2026-104129?
The pREST API, which interfaces with PostgreSQL databases, has a vulnerability that allows SQL injection via the _groupby parameter. Prior to version 2.4.0, the implementation inadequately validated this parameter, leading to potential unauthorized access to sensitive data. Due to a lax security check, attacker-controlled SQL structures could be embedded within GROUP BY clauses. The default configuration allows unauthenticated access, while even a restricted setup might allow low-privilege users to exploit this issue. The vulnerability enables attackers to execute arbitrary SQL commands, posing serious risks including potential denial of service through delay-producing functions. Users are advised to upgrade to version 2.4.0 to address this security concern.
Affected Version(s)
prest < 2.4.0
