CVE-2024-29073 Anki Latex Incomplete Blocklist Vulnerability

Medium 5.3 Published Updated

An attacker can read arbitrary files by sharing a specially crafted flashcard due to insufficient sanitization of LaTeX verbatim commands.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-29073?

CVE-2024-29073 is a medium-severity path traversal vulnerability in Ankitects Anki, published on 22 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An vulnerability in the handling of Latex exists in Ankitects Anki 24.04. When Latex is sanitized to prevent unsafe commands, the verbatim package, which comes installed by default in many Latex distributions, has been overlooked. A specially crafted flashcard can lead to an arbitrary file read. An attacker can share a flashcard to trigger this vulnerability.

Weakness: CWE-829

Which versions are affected by CVE-2024-29073?

3 open source packages ship an affected version, including anki. It affects 1 product.

PackageAffectedFixed in
anki PyPIAll versions24.6
anki PyPIAll versions24.6
anki PyPIAll versions24.6

Products include Ankiweb Anki.

How do I fix CVE-2024-29073?

Upgrade anki to 24.6 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-29073 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29073 exists.

Sources

Also known as DEBIAN-CVE-2024-29073, GHSA-x3r6-ccvq-cf5v, PYSEC-2026-1118, UBUNTU-CVE-2024-29073.

Is CVE-2024-29073 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free