CVE-2026-104129pREST _groupby function-expression SQL injection (incomplete fix of CVE-2025-58450)
- 8.1HighCVSS base score
- 1.5%Exploitation in 30 daysEPSS · top 25% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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 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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it.
Show the exploits1
Nuclei templates1 template
- pREST 2.3.0 - SQL Injection via _groupby (Nuclei template) (opens in a new tab)
http/cves/2026/CVE-2026-104129.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 49 days later
· 49 days later
Published
- 5 days later
· 5 days later
Public exploit appeared
A proof of concept or exploit was published
- 1 day later
· 1 day later
EPSS rose above 1%
0.43% → 1.5%
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVDNVD · Received | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 1.5% · top 25% of all CVEs (28 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/prest/prestGHSA-v9v2-98xq-627c (opens in a new tab)
- Gogithub.com/prest/prest/v2GHSA-v9v2-98xq-627c (opens in a new tab)
References
References5
- https://github.com/prest/prest/security/advisories/GHSA-v9v2-98xq-627c (opens in a new tab)x_refsource_CONFIRM
- https://github.com/prest/prest/pull/1014 (opens in a new tab)x_refsource_MISC
- https://github.com/prest/prest/commit/084348fa82701b098492fc520557ff290b7691e2 (opens in a new tab)x_refsource_MISC
- https://github.com/prest/prest/commit/73e4b2aea81e2dbd33942efcb1a313fe3b151a41 (opens in a new tab)x_refsource_MISC
- https://github.com/prest/prest/releases/tag/v2.4.0 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-130531 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-v9v2-98xq-627c (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-104129)Record last updated .