CVE-2024-26020 Ankitects Anki arbitrary script execution vulnerability

Critical 9.6 Published Updated

An attacker can execute arbitrary code by sending a specially crafted flashcard to Anki users, potentially compromising their systems.

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-26020?

CVE-2024-26020 is a critical code injection 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 arbitrary script execution vulnerability exists in the MPV functionality of Ankitects Anki 24.04. A specially crafted flashcard can lead to a arbitrary code execution. An attacker can send malicious flashcard to trigger this vulnerability.

Weakness: CWE-74

Which versions are affected by CVE-2024-26020?

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

PackageAffectedFixed in
anki PyPIAll versions24.06
anki PyPIAll versions24.06
anki PyPIAll versions24.06

Products include Ankiweb Anki.

How do I fix CVE-2024-26020?

Upgrade anki to 24.06 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-26020 being exploited?

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

Sources

Also known as DEBIAN-CVE-2024-26020, GHSA-9gq7-p5w9-w899, PYSEC-2026-1116, UBUNTU-CVE-2024-26020.

Is CVE-2024-26020 in your software?

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

Check your SBOMs for free