{
  "id": "CVE-2026-6460",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-6460",
  "published_at": "2026-11-12T14:15:32.415Z",
  "title": "PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code",
  "product": "PostgreSQL",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/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": {
    "created_at": "2026-11-13T07:40:19Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.7,
    "repo": "slabbdev/postgresql-type-confusion-cve-2026-6460",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, via ALTER ... SET DATA TYPE primarily.  Other DDL attack routes exist, such as \"ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN\".  The system had inadequate tracking of typed values, and values were not self-identifying.  Stale values could appear in data dictionary entries, PL/pgSQL variables, and many other parts of the system.  PostgreSQL Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.",
  "cwe": "CWE-843",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "slabbdev/postgresql-type-confusion-cve-2026-6460",
      "url": "https://github.com/slabbdev/postgresql-type-confusion-cve-2026-6460",
      "created_at": "2026-11-13T07:40:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2011-08-03T22:29:23Z"
    },
    {
      "repo": "chor4o/CVE-2026-6460-POC",
      "url": "https://github.com/chor4o/CVE-2026-6460-POC",
      "created_at": "2026-11-13T18:52:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-01-05T03:57:57Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "PostgreSQL",
        "ranges": [
          "\u003e= 18, \u003c 18.7",
          "\u003e= 17, \u003c 17.12",
          "\u003e= 16, \u003c 16.16",
          "\u003e= 15, \u003c 15.20",
          "\u003c 14.25"
        ],
        "fixed_in": [
          "18.7",
          "17.12",
          "16.16",
          "15.20",
          "14.25"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PostgreSQL to 18.7 or 17.12 or 16.16 or 15.20 or 14.25 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
