llamaCVEVulnerability Intelligence
/
pREST

CVE-2026-104129

pREST SQL injection in _groupby parameter

A remote attacker with a low-privilege login can alter database queries to read or change stored data.

Solo en configuraciones específicasSin parche publicadoSQL injection
Descargar PNG JSON
CVSS 3.1
8.1
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición1 dDesde la divulgación, 19 nov 2026, 1:49 p. m.
Detección5 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. No hay versión corregida: aplique mitigaciones.
Esto huele a PoC esperando su momento.Las PoC crecen rápido, como las llamas bebé.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Parche v2.4.0
Monitoreo
Detectada +4
27 jul 26
19 nov 26
21 nov 26
27 jul 26
25 ago 26
24 sept 26
23 oct 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche v2.4.0 github.com/prest/prest/v2 · -115 d desde divulgación
Divulgación Publicada CVE-2026-104129 divulgada · CVSS 8.1 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

The pREST API for PostgreSQL databases is vulnerable to SQL injection through its _groupby parameter, which lets an attacker alter the GROUP BY clause of a database query. An attacker can reach it remotely with a low-privilege login and could read or change data in the underlying database.

pREST versions before 2.4.0 are affected when a _groupby value contains balanced parentheses, which sends it down the raw-SQL branch. Fixed in 2.4.0.

¿Qué significa?The _groupby query parameter is passed into raw SQL when it contains balanced parentheses, so an attacker can inject SQL and alter the structure of the GROUP BY clause. The advisory classes this as SQL injection (CWE-89) and rates confidentiality and integrity impact as High.
¿Quién está afectado?The fixed range is pREST before 2.4.0, so check the pREST version in use. Only _groupby values containing balanced parentheses take the raw SQL function-expression branch.
¿Qué hacer?Upgrade pREST to 2.4.0, the fixed version named in the product range.
disagreeThe description says the issue can be reached without authentication, but the CVSS vector lists the privileges-required metric as PR:L, which means low privileges are needed. The sources do not resolve which of these is correct.
Descripción original del registro (GitHub_M)

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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The _groupby value contains balanced parentheses, so it takes the raw SQL function-expression branch“GroupByClause (line 1946) sends any _groupby field containing balanced parens down the raw-SQL-expression branch”
¿Quién debe revisar?Teams running pREST (github.com/prest/prest) 2.3.0 or earlier, including deployments that serve tables without authentication under the default configuration.
Discrepancias entre fuentesdescription-says-unauthenticated-vector-says-PR:L
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
github.com/prest/prest≤ 1.5.5
prest · github.com/prest/prest/v2< 2.4.0
1.5.5
v1.5.5
2.4.0
v2.5.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogithub.com/prest/prest
Sin parche — — v1.5.5 afectada
gogithub.com/prest/prest/v2
Corregida v2.4.0 -115 d v2.5.3 no afectada
Versiones corregidas2.4.0v2.4.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/prest/prest/security/advisories/GHSA-v9v2-98xq-627c
Otrahttps://github.com/prest/prest/pull/1014
Otrahttps://github.com/prest/prest/commit/084348fa82701b098492fc520557ff290b7691e2
Otrahttps://github.com/prest/prest/commit/73e4b2aea81e2dbd33942efcb1a313fe3b151a41
Otrahttps://github.com/prest/prest/releases/tag/v2.4.0

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.