{
  "id": "CVE-2026-65321",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65321",
  "published_at": "2026-08-02T14:56:28.91Z",
  "title": "PyAthena SQL Injection via DefaultParameterFormatter DELETE/CTAS",
  "vendor": "laughingman7743",
  "product": "PyAthena",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "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": {
    "created_at": "2026-08-03T09:47:45Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.8,
    "repo": "rahulreddykarne/CVE-2026-65321-pyathena",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "PyAthena prior to 3.35.4 contains a sql injection vulnerability that allows unauthenticated attackers to inject arbitrary SQL by exploiting improper quote-escaping in DefaultParameterFormatter.format(), which routes DELETE and CTAS statements to the _escape_hive function that backslash-escapes single quotes rather than doubling them. Because Athena and Trino do not treat backslashes as escape characters inside string literals, attacker-supplied input such as a single quote followed by SQL syntax causes the parser to terminate the string literal prematurely, enabling data exfiltration via UNION SELECT, execution of destructive statements, and attacker-controlled CTAS destination and content.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "rahulreddykarne/CVE-2026-65321-pyathena",
      "url": "https://github.com/rahulreddykarne/CVE-2026-65321-pyathena",
      "created_at": "2026-08-03T09:47:45Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2017-11-09T20:34:00Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "laughingman7743",
        "product": "PyAthena",
        "ranges": [
          "\u003c= 3.35.3"
        ],
        "fixed_in": [
          "3.35.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PyAthena to 3.35.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/laughingman7743/PyAthena/security/advisories/GHSA-xwj5-g6cv-4r5c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pyathena-dev/PyAthena/commit/27901d12245ea722b3b4e211c60e2ade4e7c8efd"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
