{
  "id": "CVE-2026-41889",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-41889",
  "published_at": "2026-05-08T15:53:00.251Z",
  "title": "pgx: SQL Injection via placeholder confusion with dollar quoted string literals",
  "vendor": "jackc",
  "product": "pgx",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "description": "pgx is a PostgreSQL driver and toolkit for Go. Prior to version 5.9.2, SQL injection can occur when the non-default simple protocol is used, a dollar quoted string literal is used in the SQL query, that string literal contains text that would be would be interpreted as a placeholder outside of a string literal, and the value of that placeholder is controllable by the attacker. This issue has been patched in version 5.9.2.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 2.3,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "slashid/baton-retool",
      "url": "https://github.com/slashid/baton-retool",
      "created_at": "2026-07-31T11:50:10Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 80,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in vendor/github.com/Masterminds/semver/v3/Makefile",
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-11-29T08:41:41Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "jackc",
        "product": "pgx",
        "ranges": [
          "\u003c 5.9.2"
        ],
        "fixed_in": [
          "5.9.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pgx to 5.9.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/jackc/pgx/releases/tag/v5.9.2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
