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.
CVE-2026-65321
This critical-severity CVE scores 9.8 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 1.0%, top 41% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 59(Track)EG Risk 59/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation1% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 59%
- KEV
- Not listed
Published
August 2, 2026
Last Modified
August 6, 2026
Advisory Details (6)
Auto-updated Aug 28, 2026PyAthena SQL Injection via DefaultParameterFormatter DELETE/CTAS | Advisories | VulnCheck
https://www.vulncheck.com/advisories/pyathena-sql-injection-via-defaultparameterformatter-delete-ctasRahul Karne — Cybersecurity Researcher
https://rahulkarne.com/#/cve/CVE-2026-65321GitHub - rahulreddykarne/CVE-2026-65321-pyathena: SQL injection in PyAthena via DefaultParameterFormatter (CVE-2026-65321) · GitHub
https://github.com/rahulreddykarne/CVE-2026-65321-pyathenacommit 27901d12245e (pyathena-dev/PyAthena)
Patch available: pyathena-dev/PyAthena v3.35.4 (contains commit 27901d12245e)
https://github.com/pyathena-dev/PyAthena/commit/27901d12245ea722b3b4e211c60e2ade4e7c8efdSQL injection in DefaultParameterFormatter for DELETE and CTAS statements · Advisory · pyathena-dev/PyAthena · GitHub
https://github.com/laughingman7743/PyAthena/security/advisories/GHSA-xwj5-g6cv-4r5cGitHub - pyathena-dev/PyAthena: PyAthena is a Python DB API 2.0 (PEP 249) client for Amazon Athena. · GitHub
https://github.com/laughingman7743/PyAthenaWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 11× in last 7d / 55× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-30 01:48 UTCEG score recompute
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-29 22:10 UTCEG score recompute
- 2026-08-28 21:42 UTCEPSS rescore
- 2026-08-27 20:07 UTCEG score recompute
- 2026-08-26 19:13 UTCEG score recompute
- 2026-08-26 14:47 UTCEPSS rescore
- 2026-08-25 15:52 UTCEG score recompute
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-24 17:46 UTCEG score recompute
- 2026-08-24 09:51 UTCEG score recompute
- 2026-08-23 00:31 UTCEG score recompute
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 02:43 UTCEG score recompute
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 01:15 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-19 19:01 UTCEG score recompute
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-18 15:50 UTCEG score recompute
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 17:01 UTCEG score recompute
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-16 15:36 UTCEG score recompute
- 2026-08-16 14:56 UTCEPSS rescore
Show 30 moreShow fewer
- 2026-08-16 04:43 UTCEG score recompute
- 2026-08-15 02:44 UTCEG score recompute
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 01:21 UTCEG score recompute
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-12 16:31 UTCEG score recompute
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-11 15:05 UTCEG score recompute
- 2026-08-11 00:34 UTCEG score recompute
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-09 15:55 UTCEG score recompute
- 2026-08-09 13:47 UTCEPSS rescore
- 2026-08-08 18:10 UTCEG score recompute
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-07 16:46 UTCEG score recompute
- 2026-08-06 15:34 UTCEG score recompute
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-05 21:26 UTCEG score recompute
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-04 16:04 UTCEG score recompute
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 12:26 UTCEG score recompute
- 2026-08-04 10:39 UTCEPSS rescore
- 2026-08-03 17:40 UTCEG score recompute
- 2026-08-03 16:19 UTCEG score recompute
- 2026-08-03 11:28 UTCEG score recompute
- 2026-08-02 15:19 UTCEG score recompute
- 2026-08-02 15:13 UTCEG score recompute
- 2026-08-02 15:13 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-65321?
When was CVE-2026-65321 disclosed?
Is CVE-2026-65321 actively exploited?
What is the CVSS score of CVE-2026-65321?
How do I remediate CVE-2026-65321?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-65321
Is Your Infrastructure Affected by CVE-2026-65321?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.