{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-104129","id":"CVE-2026-104129","title":"pREST SQL injection in _groupby parameter handling","description":"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","descriptionLong":"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.","published":"2026-11-19T18:49:03.472Z","updated":"2026-11-19T20:17:14.067Z","reserved":"2026-10-01T18:47:30.993Z","status":"Received","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"}],"rating":"high","products":["prest"],"affectedProducts":[{"vendor":"prest","product":"prest","defaultStatus":null,"versions":[{"version":"< 2.4.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-89"],"aliases":["GHSA-v9v2-98xq-627c"],"references":[{"url":"https://github.com/prest/prest/security/advisories/GHSA-v9v2-98xq-627c","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/prest/prest/pull/1014","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/prest/prest/commit/084348fa82701b098492fc520557ff290b7691e2","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/prest/prest/commit/73e4b2aea81e2dbd33942efcb1a313fe3b151a41","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/prest/prest/releases/tag/v2.4.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104129.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104129","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-104129","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104129","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-104129","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-104129","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}