Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply attacker-controlled filename to _from_pretrained
-
ExploitFilename used to build weights path unchecked
-
ExecutionPath resolves outside model directory
-
ImpactLoad/read file outside intended location
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 | Exploitation requires a victim application to invoke EEGModuleMixin._from_pretrained (the Hub Integration model-loading path in braindecode/models/base.py) with an attacker-influenced 'filename' argument containing traversal components; the fix diff shows the pre-2.0.0 code passed this filename through to build the weights path without rejecting absolute paths, backslashes, drive letters, or '..' segments. Limiting factors: the CVSS vector sets UI:P, so the victim must initiate the model-load operation, and exploitation depends on the attacker being able to control or influence the filename/model reference that is loaded; it is not a continuous unauthenticated remote service exposure. Affected versions are braindecode up to 1.8.2; version 2.0.0 adds filename validation and a containment check that rejects paths resolving outside the model directory. |
| Impact | This is a medium-severity (CVSS 4.0 base 5.3) path traversal (CWE-22) in braindecode's Hub Integration, where the attacker-influenced 'filename' argument to EEGModuleMixin._from_pretrained is used to build a weights path without validation. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L) signals network reach with no privileges but REQUIRES user interaction (UI:P) - the victim must initiate a model load - and the vendor rates all three impacts only Low, consistent with loading/reading a file outside the intended model directory rather than straight remote code execution. The E:P (Proof-of-Concept) exploit-maturity field and the listed github-poc reference are consistent with the input: a public PoC reference exists but is not verified as working exploit code. There is no EPSS score and no CISA KEV entry in the provided data, and the vuln.today Decision label is 'this_month' (not act_now/emergency), so this should be scheduled remediation rather than an emergency. Note a tension worth verifying: the description says 'attack can be executed remotely' and the CVSS is AV:N, yet the mechanism is manipulation of a filename passed to a local model-loading call, so real-world exploitation hinges on getting a victim to load a model with an attacker-chosen filename/reference - assess exposure against how your applications feed that argument. |
| Exploit ScenarioDerived | An attacker publishes or otherwise supplies a model reference whose 'filename' contains traversal sequences; when a victim application calls EEGModuleMixin._from_pretrained with that attacker-influenced value, the loader resolves a path outside the intended model directory. A public PoC reference exists but is not verified as working exploit code, and exploitation depends on the victim initiating the load (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Path traversal in braindecode through version 1.8.2 allows an attacker who can influence the 'filename' argument passed to EEGModuleMixin._from_pretrained (the Hub Integration loading path in braindecode/models/base.py) to escape the intended model directory and reference files outside the model folder. The CVSS 4.0 base score is 5.3 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P), and the vector's UI:P means the victim application must initiate the model-load operation rather than being exposed continuously; impact is limited to low confidentiality, integrity and availability effects within the victim's own security scope. A public PoC reference exists; it is not verified as working exploit code, and no confirmed active exploitation (CISA KEV) or EPSS data was supplied, which places the issue at a 'this_month' priority rather than an emergency.
RemediationAI
Upgrade braindecode to version 2.0.0, which adds _validate_weights_filename and _local_weights_path so that filenames containing '..', absolute paths, drive letters, backslashes or NUL bytes are rejected and any resolved weights path must stay inside the model directory; the corresponding fix is upstream PR https://github.com/braindecode/braindecode/pull/1494, commit 05b764d93b9a50400f523206fbe03d73d0cf5edb, and release https://github.com/braindecode/braindecode/releases/tag/v2.0.0 (vendor advisory context at https://github.com/braindecode/braindecode/issues/1440). The supplied sources describe no workaround other than upgrading; because exploitation requires the victim application to load a model using a filename or model reference that the attacker can influence, interim risk reduction depends on ensuring that the 'filename' argument to EEGModuleMixin._from_pretrained and any model identifier reaching the Hub integration come from trusted, allow-listed values rather than user input, with the trade-off that this restricts dynamic or user-supplied model sourcing.
Affected VersionsENISA
Affected Packages
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
The flaw is a classic CWE-22 path traversal inside braindecode's Hugging Face Hub integration. In the pre-2.0.0 code, _from_pretrained accepted a caller-supplied 'filename' and, when loading weights, temporarily overwrote huggingface_hub.constants.SAFETENSORS_SINGLE_FILE with that value and built a local weights path from Path(model_id) / filename without any validation. Because the string was never checked, an attacker-influenced value containing '..' segments, an absolute path, a Windows drive letter, backslashes or NUL bytes could resolve to a location outside the model directory, and the patch notes that symlinks pointing outside the folder were also a concern. The upstream fix (PR #1494, commit 05b764d93b9a50400f523206fbe03d73d0cf5edb, released as v2.0.0) introduces _validate_weights_filename, which rejects non-string or empty input, NUL bytes, backslashes, absolute POSIX paths, Windows drive prefixes, and empty, '.' or '..' path segments, and _local_weights_path, which resolves the candidate path and enforces it stays relative to the resolved model root. The same patch replaces the global huggingface_hub constant override with an explicit hf_hub_download call for remote repos and relocates the config type import to a resolve_config_type helper; affected deployments are identified by the CPE cpe:2.3:a:n/a:braindecode:*:*:*:*:*:*:*:*.
Know when Braindecode gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Attacker-influenced filename reaches the loader over the network (AV:N) with no privileges (PR:N) but the victim must trigger the model load (UI:R); traversal yields limited file read/write impact (C/I/A:L).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in braindecode up to 1.8.2. This affects the function EEGModuleMixin._from_pretrained of the file braindecode/models/base.py of the component Hub Integration. Such manipulation of the argument filename leads to path traversal. The attack can be executed remotely. The exploit has been disclosed publicly and may be used. Upgrading to version 2.0.0 mitigates this issue. The name of the patch is 05b764d93b9a50400f523206fbe03d73d0cf5edb. It is recommended to upgrade the affected component.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-120483
GHSA-fgc8-5j54-vx6q
NVD
CVE.org
EPSS
VulDB
Exploit-DB