Arbitrary Code Injection Affecting anki package, versions [,24.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
3.18% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ANKI-12671208
  • published15 Sept 2025
  • disclosed4 Sept 2025
  • creditAutumn Bee Skerritt, Jacob B.

Introduced: 4 Sep 2025

NewCVE-2024-26020  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade anki to version 24.6 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection due to improper handling of MPV functionality in flashcards. The MPV component processes user-supplied flashcard content with insufficient sanitization, enabling crafted inputs to execute arbitrary scripts on Windows systems. An attacker can exploit this by distributing a specially crafted flashcard to a userresulting in arbitrary code execution within the user's context, potentially leading to full system compromise.

CVSS Base Scores

version 4.0
version 3.1