{
  "id": "CVE-2026-120064",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-120064",
  "published_at": "2026-11-02T19:09:13.482Z",
  "title": "psqlODBC does not validate column numbers and row indexes in binding and descriptor functions",
  "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": "Several psqlODBC entry points use an application-supplied column number or row index as an array index without validating it. SQLBindCol with a column number above 32767 wraps the binding count negative and a later copy runs off the array. A negative SQL_DESC_COUNT on an application row descriptor unbinds columns at negative indexes. SQLColAttribute with a very large column number uses a negative index. SQLSetPos(SQL_ADD) does not check the row number against the rowset size. An application that forwards untrusted column or row numbers exposes its process to out-of-bounds reads and writes. Versions before psqlODBC 18.00.0006 are affected.",
  "cwe": "CWE-129",
  "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. SQLBindCol rejects column numbers above 32767 with SQLSTATE 07009, a negative descriptor count is ignored, and the column and row indexes are range-checked."
    ],
    "upgrade": [
      "Upgrade psqlODBC to 18.00.0006 or later."
    ],
    "workarounds": [
      "Validate column numbers (1..32767 and within the result set) and row numbers (within the rowset) in the application before calling the driver."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7pq2-q7mj-ph8c"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
