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。

标签 漏洞类型SQL injection 攻击途径网络无需用户交互 软件包生态Go
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

SQL injection
CWE-89(来源:编号分配方 GitHub_M、NVD(转录自 [email protected])、GitHub 公告 GHSA-v9v2-98xq-627c)
网络
编号分配方 GitHub_M 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N(CVSS 3.1)中的 AV:N
无需用户交互
编号分配方 GitHub_M 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N(CVSS 3.1)中的 UI:N
Go
GHSA-v9v2-98xq-627c:go 包 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.

以上是 CVE 记录(cvelist)中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

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

CVSS 3.1 向量,来自 CVE 记录,由 CNA GitHub_M 评定。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 GitHub_M。CVSS 8.1,高危。

来源 cvelist · 本站 实时观测 · 原始记录
{
  "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"
  }
}
来源未给时间,本站实时观测
+PAT补丁发布

公告给出修复版本 github.com/prest/prest/v2 2.4.0。公告附有修复提交。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa GHSA-v9v2-98xq-627c · 本站 实时观测 · 原始记录
{
  "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"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。