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

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

prest / prest

揭露 1 天後出現修補紀錄。已於 github.com/prest/prest/v2 2.4.0 修補。四個 PoC 來源皆未收錄。目前未列入 CISA KEV。

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] 與 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
目前階段
PAT
揭露時間
揭露 → 修補
T+1d
CVSS
8.1 HIGH v3.1

生命週期

橫軸 UTC;點=精確到分鐘,寬條=僅日期,空心=不明或推斷。
時間不明
DIS揭露
11-19T18:49Z
PAT修補
11-20T15:05Z
ANA分析
尚無紀錄
POCPoC
尚無紀錄
ITW遭利用
尚無紀錄
KEVKEV
尚無紀錄

摘要

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.

事件紀錄

+DIS揭露

CVE 紀錄由 GitHub_M 發布。CVSS 8.1,屬高風險等級。

來源 cvelist · nday 於 即時觀測 · 原始
{
  "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"
  }
}
來源無時間;nday 即時觀測
+PAT已有修補

公告列出的修補版本:github.com/prest/prest/v2 2.4.0。公告附有修補 commit。公告發布於 ;修補本身的釋出時間沒有紀錄。

來源 ghsa GHSA-v9v2-98xq-627c · nday 於 即時觀測 · 原始
{
  "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.

研究員討論

近 7 天有 0 位研究員提及

名單內研究員在 X 上提及此 CVE 的貼文,照原文呈現,nday 不查核。

尚未收錄名單內研究員在 X 上提及此 CVE 的貼文。

Discussion

0 comments

No comments yet.