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

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

prest / prest

Patch on record 1 day after disclosure. Patched: fixed in github.com/prest/prest/v2 2.4.0. None of the four PoC sources lists it. Not in 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], and 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
stage
PAT
disclosed
disclosure → patch
T+1d
cvss
8.1 HIGH v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-19T18:49Z
PATpatch
11-20T15:05Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 8.1, high.

src cvelist · nday , observed live · raw
{
  "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"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed version github.com/prest/prest/v2 2.4.0. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-v9v2-98xq-627c · nday , observed live · raw
{
  "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.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.