Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
laughingman7743 PyAthena
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pyathena-dev PyAthena是pyathena-dev团队开源的一个用于 Amazon Athena 的 Python DB API 2.0 (PEP 249) 客户端。 pyathena-dev PyAthena 3.35.4之前版本存在SQL注入漏洞,该漏洞源于DefaultParameterFormatter.format()中引号转义不当,可能导致未认证攻击者注入任意SQL,造成数据泄露或执行破坏性语句。

CVSS 9.8 · Critical EPSS 0.77% · P54

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 2

VendorProduct Version RangeStatus
laughingman7743 PyAthena ≤ 3.35.3 affected
3.35.4 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-65321

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PyAthena SQL Injection via DefaultParameterFormatter DELETE/CTAS
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
pyathena-dev PyAthena SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pyathena-dev PyAthena是pyathena-dev团队开源的一个用于 Amazon Athena 的 Python DB API 2.0 (PEP 249) 客户端。 pyathena-dev PyAthena 3.35.4之前版本存在SQL注入漏洞,该漏洞源于DefaultParameterFormatter.format()中引号转义不当,可能导致未认证攻击者注入任意SQL,造成数据泄露或执行破坏性语句。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
laughingman7743 PyAthena 0 ~ 3.35.3 -

II. Public POCs for CVE-2026-65321

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 11906 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-65321

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-65321 (1)

Vendor Advisories for CVE-2026-65321 (2)

Proof of Concept for CVE-2026-65321 (1)

Other References for CVE-2026-65321 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-65321

No comments yet


Leave a comment