安全速报自动同步 · 保留上游原文

【中危】aqt:路径穿越风险(GHSA-cw6h-ffmh-x6vh)

S
KHack 安全情报
2026/6/20 发布 · 3 阅读

安全情报快照 · 风险级别:中危 · CVSS:6.5 · GHSA-cw6h-ffmh-x6vh

先看结论

aqt存在路径穿越风险,<= 25.9.3 受影响,建议升级至 25.9.4。

影响范围

生态 组件 受影响版本 首个修复版本
pip aqt <= 25.9.3 25.9.4

处置建议

优先将 aqt 升级至 25.9.4 或更高版本;升级前请结合业务依赖完成兼容性验证。

上游技术详情(原文)

Summary

Anki's webview-based pages communicate with the Rust backend using an internal localhost API. Anki implements measures to prevent user scripts run in the reviewer/editor from accessing this API (https://github.com/ankitects/anki/pull/3925) but it inadvertently allows access to scripts included via iframes in the editor. While overall only a limited set of API methods are exposed, some such as getImageForOcclusion can read arbitrary files.

CWE: CWE-22 (Path Traversal)
Reporter: Bankde (Eakasit)

Affected Products

Ecosystem Package Affected Versions
PyPI aqt <= 25.09.3

Impact

Any desktop Anki user (Windows, macOS, Linux) who imports an untrusted .apkg and views card with an embedded iframe is vulnerable. No special configuration is required. The attacker can read any file accessible to the Anki process and exfiltrate its contents over the network.

Patches

A patch is available in 25.09.4

Workarounds

  • Do not import .apkg files from untrusted sources.
  • Inspect .apkg contents (it's a ZIP) for .html/.svg files with <script> tags before importing.
  • Block unexpected outbound network requests from the Anki process at the firewall level.

References

来源与许可

本页自动同步 GitHub Advisory Database 的公开数据,并保留上游原文供核验;不宣称原创分析。数据许可:CC-BY-4.0。

评论

还没有评论,来说两句。