PyPI: anki

CVE-2024-29073

Safety vulnerability ID: SFTY-20240722-74172

Safety legacy ID: pyup.io-78755

Affected versions of the Anki package are vulnerable to Arbitrary File Read due to incomplete LaTeX sanitization that fails to block the `verbatim` package. The Latex handling module overlooks the `verbatim` package during sanitization, allowing specially crafted flashcards to include commands that read arbitrary files. An attacker can exploit this by sharing a malicious flashcard, which, when rendered by Anki 24.04, causes the application to read files on the user’s system, potentially exposing sensitive local data.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Anki Latex Incomplete Blocklist Vulnerability

Advisory

Affected versions of the Anki package are vulnerable to Arbitrary File Read due to incomplete LaTeX sanitization that fails to block the `verbatim` package. The Latex handling module overlooks the `verbatim` package during sanitization, allowing specially crafted flashcards to include commands that read arbitrary files. An attacker can exploit this by sharing a malicious flashcard, which, when rendered by Anki 24.04, causes the application to read files on the user’s system, potentially exposing sensitive local data.

Affected Package

Affecting anki package, versions<24.6

Also affects

---

How to Fix

Upgradeankito24.6or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more