nday
CVE-2026-104129 GHSA-v9v2-98xq-627c

pREST _groupby function-expression SQL injection (incomplete fix of CVE-2025-58450)

prest / prest

Correctif recensé 1 jour après la divulgation. Version corrigée : github.com/prest/prest/v2 2.4.0. Cette vulnérabilité ne figure dans aucune des quatre sources de PoC. Aucune inscription au catalogue KEV de la CISA à ce jour.

tags weakness typeSQL injection accessnetworkno user interaction ecosystemGo
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

SQL injection
CWE-89, stated by the CNA GitHub_M, NVD, republishing [email protected] et GitHub advisory GHSA-v9v2-98xq-627c
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1) from the CNA GitHub_M
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1) from the CNA GitHub_M
Go
GHSA-v9v2-98xq-627c: go packages github.com/prest/prest, github.com/prest/prest/v2
étape actuelle
PAT
divulgation
délai avant correctif
T+1d
CVSS
8.1 HIGH v3.1

Cycle de vie

Axe en UTC ; point = minute exacte, barre large = date seule, creux = inconnue ou déduite.
date inconnue
DISdivulguée
11-19T18:49Z
PATcorrectif
11-20T15:05Z
ANAanalyse
aucune donnée
POCPoC
aucune donnée
ITWexploitée
aucune donnée
KEVKEV
aucune donnée

Résumé

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Journal des événements

+DISdivulgation

Fiche CVE publiée par GitHub_M. CVSS 8.1, gravité élevée.

source cvelist · observé en direct par nday le · brut
{
  "id": 487676,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-104129",
  "occurred_at": "2026-11-19T18:49:03.472Z",
  "observed_at": "2026-11-19T19:04:12.558655Z",
  "is_backfill": false,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "version": "3.1",
      "base_score": 8.1,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-11-19T19:29:22.412722Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-19T18:49:03.472Z",
    "assigner_short_name": "GitHub_M"
  }
}
source non datée ; vu en direct par nday
+PATcorrectif disponible

L’avis indique la version corrigée github.com/prest/prest/v2 2.4.0. L’avis renvoie vers les commits de correction. Avis publié le  ; la date de publication du correctif lui-même n’est pas renseignée.

source ghsa GHSA-v9v2-98xq-627c · observé en direct par nday le · brut
{
  "id": 497094,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-v9v2-98xq-627c",
  "occurred_at": null,
  "observed_at": "2026-11-20T15:05:01.510706Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-v9v2-98xq-627c",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 8.1,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Special Elements used in an SQL Command",
        "cwe_id": "CWE-89"
      }
    ],
    "ghsa_id": "GHSA-v9v2-98xq-627c",
    "packages": [
      {
        "name": "github.com/prest/prest",
        "ecosystem": "go",
        "first_patched_version": null,
        "vulnerable_version_range": "<= 1.5.5"
      },
      {
        "name": "github.com/prest/prest/v2",
        "ecosystem": "go",
        "first_patched_version": "2.4.0",
        "vulnerable_version_range": "<= 2.3.0"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/prest/prest/security/advisories/GHSA-v9v2-98xq-627c",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-104129",
      "https://github.com/prest/prest/pull/1014",
      "https://github.com/prest/prest/commit/084348fa82701b098492fc520557ff290b7691e2",
      "https://github.com/prest/prest/commit/73e4b2aea81e2dbd33942efcb1a313fe3b151a41",
      "https://github.com/prest/prest/releases/tag/v2.4.0",
      "https://github.com/advisories/GHSA-v9v2-98xq-627c"
    ],
    "fix_commit_urls": [
      "https://github.com/prest/prest/pull/1014",
      "https://github.com/prest/prest/commit/084348fa82701b098492fc520557ff290b7691e2",
      "https://github.com/prest/prest/commit/73e4b2aea81e2dbd33942efcb1a313fe3b151a41"
    ],
    "github_reviewed_at": "2026-11-20T14:41:42Z",
    "advisory_updated_at": "2026-11-20T14:41:43Z",
    "source_code_location": "https://github.com/prest/prest",
    "advisory_published_at": "2026-11-20T14:41:42Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Échanges entre chercheurs

0 chercheur en a parlé ces 7 derniers jours

Publications sur X de chercheurs suivis par nday citant cette CVE, telles que publiées. nday ne les vérifie pas.

nday n’a encore recueilli aucune publication sur X d’un chercheur de sa liste citant cette CVE.

Discussion

0 comments

No comments yet.