CVE-2026-65321CWE-89sql-injection

CVE-2026-65321

Critical · published August 2, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
55.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00767 · 55.0th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2026-08-02T19:16Z
References (6)
EPSS history
Timeline
  • 02 AUG 14:56Z
    PyAthena SQL Injection via DefaultParameterFormatter DELETE/CTAS
    cvelistv5