{
  "id": "CVE-2026-120061",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-120061",
  "published_at": "2026-11-02T19:09:11.59Z",
  "title": "psqlODBC ODBC escape parser stack buffer overflow",
  "vendor": "PostgreSQL",
  "product": "psqlODBC",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:L/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": 0,
  "edge_device": null,
  "description": "The psqlODBC parser for ODBC escape sequences in application SQL text writes the argument offsets of a {fn} escape into a fixed 16-entry stack array without a bound and does not initialize the array. An escape with too many arguments overflows the stack, and a reference to an unsupplied argument copies arbitrary bytes into the query. The copy of a {d}, {t}, {ts}, or {escape} body also writes one byte past a 128-byte stack buffer. An application that forwards untrusted SQL text to the driver exposes its process to memory corruption. Versions before psqlODBC 18.00.0006 are affected.",
  "cwe": "CWE-121",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "PostgreSQL",
        "product": "psqlODBC",
        "ranges": [
          "\u003c 18.00.0006"
        ],
        "fixed_in": [
          "18.00.0006"
        ]
      }
    ],
    "solutions": [
      "Upgrade to psqlODBC 18.00.0006 or later. The argument offset array is initialized and bounded, and the escape body copy reserves room for the terminator."
    ],
    "upgrade": [
      "Upgrade psqlODBC to 18.00.0006 or later."
    ],
    "workarounds": [
      "Do not pass SQL text from untrusted sources to the driver, or reject text containing ODBC escape sequences ({fn ...}, {d ...}, {t ...}, {ts ...}, {escape ...}) before it reaches the driver."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hfm6-qfx8-v4xq"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
