CVE-2026-65321: Vulnerability in PyAthena
Critical. 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...
CWE-89
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-89
- Published
- 2 Aug 2026
- Last change
- 23 Oct 2026
Affected products
Affected versions and the first fixed release
- PyAthena Before 3.35.4. Fixed in 3.35.4
Advisories
Vendor and security advisories
- github.com/laughingman7743/PyAthena
- github.com/laughingman7743/PyAthena/security/advisories/GHSA-xwj5-g6cv-4r5c
- github.com/rahulreddykarne/CVE-2026-65321-pyathena
- rahulkarne.com
- vulncheck.com/advisories/pyathena-sql-injection-via-defaultparameterformatter-delete-ctas
Patches and fixes
Updates, commits and release notes
Related
- PyAthena vulnerabilities Recent advisories, watch this product