{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-65321","published":"2026-08-02T15:16:33.957000Z","last_modified":"2026-10-23T22:10:00.160000Z","status":"Deferred","cvss":{"version":"4.0","score":9.3,"severity":"CRITICAL","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"disclosure@vulncheck.com","primary":false},"auth":false,"cwes":["CWE-89"],"cpes":[],"cpes_truncated":false,"vendors":["laughingman7743"],"products":["laughingman7743/pyathena"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":71,"links":{"html_es":"/es/cve/CVE-2026-65321/","html_en":"/en/cve/CVE-2026-65321/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-65321","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-65321"},"untrusted":{"vendor_name":"laughingman7743","product_name":"PyAthena","desc_en":"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.","affected":[{"untrusted_vendor":"laughingman7743","untrusted_product":"PyAthena","versions":[]}],"references":[{"url":"https://github.com/laughingman7743/PyAthena","tags":[]},{"url":"https://github.com/laughingman7743/PyAthena/security/advisories/GHSA-xwj5-g6cv-4r5c","tags":[]},{"url":"https://github.com/pyathena-dev/PyAthena/commit/27901d12245ea722b3b4e211c60e2ade4e7c8efd","tags":[]},{"url":"https://github.com/rahulreddykarne/CVE-2026-65321-pyathena","tags":[]},{"url":"https://rahulkarne.com/#/cve/CVE-2026-65321","tags":[]},{"url":"https://www.vulncheck.com/advisories/pyathena-sql-injection-via-defaultparameterformatter-delete-ctas","tags":[]}]}}