Back to CVE records
Critical 9.8Published Aug 2, 2026

CVE-2026-65321PyAthena SQL Injection via DefaultParameterFormatter DELETE/CTAS

Updated under an hour ago ()

Does this affect you?

It affects laughingman7743 PyAthena. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
9.8 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-89
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
VulnCheck
NVD analysis
Deferred
Record last updated
Aug 6, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
laughingman7743 PyAthena
laughingman7743:pyathena (from the name)
through 3.35.3; 3.35.4 not affected
CNA record

References

  • product
  • vendor-advisory
  • patch
  • third-party-advisory
  • technical-description
  • related

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.