Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted model config
-
ExploitVictim deserializes Activation field
-
Executionresolve_type_kwargs resolves attacker class string
-
ImpactUnsafe externally-controlled class selection
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
|
| Exploitation Conditions | Requires a victim to deserialize/load an attacker-supplied braindecode model configuration (the Model Config Deserialization path reaching resolve_type_kwargs) in which the Activation argument is attacker-controlled; the function resolves that string via unsafe reflection (pydantic ImportString) to select an arbitrary importable class. Exploitation is limited by required user interaction (UI:P) - the victim must load the crafted config, so there is no server-side unattended trigger - and by version: only braindecode up to 1.8.1 is affected, with the issue resolved in 2.0.0. Impact is bounded to selecting importable classes rather than a vendor-confirmed arbitrary-code-execution primitive. |
| Impact | Signals point to a moderate, not urgent, priority. The CVSS 4.0 vector (5.3, Medium) shows AV:N/AC:L/PR:N but UI:P, so although the flaw is network-reachable and needs no authentication, it is not self-propagating - a victim must passively load an attacker-supplied model configuration. Vendor-assessed impact is uniformly Low (VC:L/VI:L/VA:L), consistent with CWE-470 unsafe reflection that lets externally-controlled input select classes rather than a cleanly confirmed arbitrary-code-execution primitive. Exploit maturity is E:P (Proof-of-Concept): a PoC reference (poc.zip) is attached but, per the input, is not verified as working exploit code, so this is distinct from a weaponized or actively-exploited bug. It is NOT in CISA KEV and no EPSS score is provided in the input, so widespread automated exploitation cannot be inferred. The vuln.today Decision label is 'this_month', aligning with a plan-and-patch cadence rather than emergency action. Net: a legitimate issue worth remediating within the normal monthly cycle, bounded by the required user interaction and by the niche deployment footprint of the product - neither a high-CVSS-but-no-real-risk false alarm nor an emergency. |
| Exploit ScenarioDerived | An attacker distributes a crafted braindecode model configuration (for example via a shared or hosted model whose serialized config a researcher deserializes) in which the Activation field references an attacker-chosen importable Python class. When the victim loads/deserializes the config, resolve_type_kwargs resolves that externally-controlled string through pydantic ImportString, selecting an attacker-named class. A public PoC reference (poc.zip) exists but is not verified as working exploit code; exploitation depends on the victim loading the malicious config (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Signals point to a moderate, not urgent, priority. Unsafe class resolution in braindecode up to and including 1.8.1 lets an attacker who supplies a crafted model configuration have the Activation argument converted into an arbitrary importable class through the pydantic ImportString path in resolve_type_kwargs (braindecode/models/util.py). The victim must load that crafted configuration (UI:P in the assessed vector), so there is no unattended server-side trigger, and the assessed impact stays limited to selecting importable classes rather than a vendor-confirmed arbitrary-code-execution primitive. A public PoC reference exists; it is not verified as working exploit code, and there is no KEV designation indicating active exploitation.
RemediationAI
Vendor-released patch: 2.0.0. Upgrade braindecode to 2.0.0 or later, which contains commit 05b764d93b9a50400f523206fbe03d73d0cf5edb and PR https://github.com/braindecode/braindecode/pull/1494, and is published at https://github.com/braindecode/braindecode/releases/tag/v2.0.0; the vendor states the affected component should be upgraded. The patch replaces pydantic ImportString with a validated resolver so type-valued config fields are no longer imported from arbitrary dotted strings, and additionally validates weight filenames and resolved local weight paths, so environments pinned to 1.8.1 do not receive those loading-path checks. Until the upgrade is deployed, the practical compensating control followable from the disclosed exploitation conditions is to load braindecode model configurations only from trusted, first-party sources and to avoid deserializing third-party or user-supplied model configs, since the flaw requires the victim to load the crafted configuration; the trade-off is that this disables sharing and pulling of external pretrained model configs, which must then be reviewed or regenerated locally. Vulnerability detail and version guidance are also tracked at https://github.com/braindecode/braindecode/issues/1441 and https://vuldb.com/vuln/436293.
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
braindecode is a Python library for decoding EEG/MEG signals built on PyTorch and MNE, and its model classes use pydantic-based configuration models layered on a Hugging Face Hub model mixin (PyTorchModelHubMixin) for saving and loading pretrained models. The root cause is CWE-470 (Use of Externally-Controlled Input to Select Classes or Code, i.e. unsafe reflection): type-hinted configuration fields were previously annotated with pydantic.ImportString, so a value read out of a deserialized model config was imported as a dotted class path. The vulnerable path is the Model Config Deserialization component reaching resolve_type_kwargs in braindecode/models/util.py, where the Activation argument is resolved into a class. The upstream fix in PR 1494 removes ImportString and replaces it in braindecode/models/config.py with Annotated[type_hint, pydantic.BeforeValidator(resolve_config_type), pydantic.PlainSerializer(...)], adds an override of _decode_arg in braindecode/models/base.py to defer default decoding of plain/optional type fields to the effective-kwargs resolver, and removes the temporary override of huggingface_hub.constants.SAFETENSORS_SINGLE_FILE in favor of explicit local/hub weight resolution. That same patch also hardens adjacent loading paths with _validate_weights_filename (rejects absolute, drive-qualified, backslash, NUL-containing and traversal-style filenames) and _local_weights_path (rejects local weight files, including symlinks, that resolve outside the model directory), and restricts local directory loads to safetensors while noting the legacy pickle fallback is remote-only. Beyond the config-deserialization path described above, the available sources do not detail additional attacker entry points or preconditions for triggering the faulty resolution.
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
Config is network-deliverable and needs no auth (AV:N/PR:N) but the victim must load it (UI:R); unsafe class selection yields limited C/I/A without a scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability has been found in braindecode up to 1.8.1. Affected is the function resolve_type_kwargs of the file braindecode/models/util.py of the component Model Config Deserialization. Such manipulation of the argument Activation leads to use of externally-controlled input to select classes or code. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.0.0 is able to address this issue. The name of the patch is 05b764d93b9a50400f523206fbe03d73d0cf5edb. The affected component should be upgraded.
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
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
EUVD-2026-124374
GHSA-c3h9-q839-4w8h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB