Skip to main content

Anki EUVDEUVD-2026-54206

| CVE-2026-64677 MEDIUM
Path Traversal (CWE-22)
2026-08-06 security-advisories@github.com
5.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim imports malicious shared deck or visits attacker-controlled site
  2. Delivery
    Embedded script targets Anki local HTTP server
  3. Exploit
    Crafted path bypasses directory boundary check
  4. Execution
    Local HTTP server returns out-of-bounds file contents
  5. Impact
    Script exfiltrates file data to attacker server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Anki must be actively running with its local HTTP server enabled, which occurs by default whenever the application is open - no special configuration is required to expose this server. For the shared deck vector: the victim must import and actively review a deck containing malicious JavaScript, which requires deliberate user action (UI:A per CVSS 4.0). For the malicious website vector: the attacker must first defeat Anki's origin check (the CVSS AT:P flag confirms a specific precondition applies here, though the exact bypass mechanism is not fully detailed in the advisory). Exploitation is strictly limited to reading files accessible under the permissions of the Anki process user - no write, execute, or privilege escalation is possible. The attack does not work if Anki is closed, if the user only reviews decks from fully trusted sources in isolation, or if network egress from the local machine to attacker infrastructure is blocked (preventing exfiltration, though the read itself may still occur).

Impact

The CVSS 4.0 score of 5.9 reflects a network-reachable, low-complexity flaw requiring active user interaction (UI:A) and specific attack requirements (AT:P - Anki must be running). Confidentiality impact is rated high (VC:H) because successful exploitation allows reading arbitrary files accessible to the Anki process user. Integrity and availability are unaffected. No EPSS score was provided in the input data, so exploitation probability cannot be quantified numerically. No CISA KEV listing is present, and no public proof-of-concept exploit has been identified. The realistic threat model centers on the AnkiWeb shared deck ecosystem, where a malicious deck author could embed JavaScript that, when a victim reviews the deck, traverses to sensitive local paths. The origin-check bypass widens the attack surface to drive-by web scenarios. Real-world priority is moderate: the user interaction requirement limits mass exploitation, but the combination of a large and trusting user community accustomed to importing third-party decks and the high-value file read primitive elevates urgency above a low-risk CVSS rating alone.

Exploit ScenarioDerived

An attacker publishes a shared deck on AnkiWeb containing a card template with embedded JavaScript that issues a fetch request to Anki's local HTTP server using a traversal path such as ../../../../../../home/user/.ssh/id_rsa. When the victim opens and reviews the deck with a vulnerable version of Anki running, the script reads the target file and POSTs its contents to an attacker-controlled server. Alternatively, a malicious website exploiting the origin-check bypass can trigger the same traversal passively while the user browses with Anki open in the background.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 06, 2026

Directory traversal in Anki's local HTTP server (versions prior to 25.09.3) exposes arbitrary local files to scripts embedded in shared decks or to malicious websites exploiting an origin-check bypass. The flaw exists in both the media file endpoint and the built-in data path endpoint within qt/aqt/mediasrv.py, where path boundary checks were either absent or bypassable via the missing os.sep suffix. No public exploit code or CISA KEV listing has been identified at time of analysis, but the high confidentiality impact (VC:H) and the realistic social-engineering vector through the AnkiWeb shared deck ecosystem make this a credible threat to active Anki users.

RemediationAI

Upgrade to Anki 25.09.3 or later, which is the vendor-confirmed fixed release per advisory GHSA-78wr-2gg2-4hqg (https://github.com/ankitects/anki/security/advisories/GHSA-78wr-2gg2-4hqg). The fix enforces proper path boundary checks in both media and built-in data handlers. If an immediate upgrade is not possible, two compensating controls are available with trade-offs: first, avoid importing or reviewing decks from untrusted sources on AnkiWeb or third-party repositories - this eliminates the shared-deck vector but does not address the malicious-website vector; second, close or quit Anki while browsing untrusted websites, which eliminates the origin-bypass vector but is operationally disruptive. There is no configuration option to disable the local HTTP server independently without breaking core Anki functionality, so patching is the only complete remediation.

Affected VersionsENISA

Anki 25.09.3

Affected Packages

euvd anki no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Anki runs a local HTTP server (mediasrv.py) to serve media files and built-in application data when a user is reviewing flashcards. The root cause (CWE-22, Improper Limitation of a Pathname to a Restricted Directory) manifested in two distinct places: (1) the _handle_local_file_request handler used fullpath.startswith(directory) without appending os.sep, meaning a crafted path whose resolved absolute form began with the base directory string but escaped it (e.g., /media/../secret) could satisfy the check; (2) _handle_builtin_file_request explicitly constructed paths as aqt_data_path() / '..' / path, inherently stepping one directory above the data folder before applying any user-supplied path. The fix introduces ensure_safe_path(), which normalizes the base via os.path.realpath(), resolves the candidate path with os.path.abspath(), and enforces containment with startswith(base_dir + os.sep), catching both bypass vectors. An additional attack surface is an origin-check bypass that allows malicious external websites to reach this local HTTP server.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network vector via local HTTP server, no privileges needed, but active user interaction required (open deck or visit site); confidentiality is high due to arbitrary local file read, with no integrity or availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Anki is a program for creating and reviewing flashcards. Prior to 25.09.3, endpoints in Anki's local HTTP server do not adequately constrain requested media and built-in data paths, allowing scripts served from shared decks, or malicious websites combined with an origin-check bypass, to read local files through directory traversal. This issue is fixed in version 25.09.3.

Threat Intelligence Overview

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Medium
popular desktop flashcard app among students, medical professionals, language learners
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.8%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy