3 matches found
pREST 2.3.0 - SQL Injection via _groupby
pREST 2.3.0 contains a SQL injection vulnerability in the groupby query parameter of the table select endpoint. GroupByClause in adapters/postgres/postgres.go treats any groupby field that contains parentheses as a raw SQL expression and only checks it with isSafeSQLExpression. This check validat...
GHSA-V9V2-98XQ-627C pREST _groupby function-expression SQL injection (incomplete fix of CVE-2025-58450)
What the fix did and the gap ---------------------------- The v2.3.0 fix commit e88dabb routed the select field through a strict new gate, sanitizeSelectField postgres.go:947/1003/2097. The sibling groupby path was left on the far weaker isSafeSQLExpression. adapters/postgres/postgres.go,...
CVE-2026-104129
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...