CVE-2026-142490
7.8HighPublished Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-95
What an attacker gets
Attackers can execute arbitrary Python code as the user running the script. This requires a user to open a malicious HDF5 file within a project folder.
Root cause
The application uses the eval() function on untrusted data contained within the fit_instructions attribute of an HDF5 file.
Affected versions
Bagpipes through 1.4.1
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to a version beyond 1.4.1 that replaces eval() with a safe parser. Until patched, do not open or process HDF5 files from untrusted sources.
$ pip install --upgrade bagpipesAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
Bagpipes through 1.4.1 contains an eval injection vulnerability in bagpipes/fitting/fit.py and posterior.py that allows attackers to execute Python code by supplying a crafted posterior HDF5 file. Attackers can share a project folder containing a malicious .h5 file whose fit_instructions attribute is passed to eval(), executing code as the user running fitting or plotting scripts.
References
- https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141
- https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58
- https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d
- https://github.com/ACCarnall/bagpipes/issues/121
- https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-768137.5HighRemote attackers can crash or stall the server by sending a malicious response that triggers excessive memory allocation and blocks the event loop. No authentication is required to trigger this denial-of-service condition.
- CVE-2026-768129.3CriticalUnauthenticated attackers can steal cloud IAM credentials via server-side request forgery. This allows them to move laterally into your cloud account.
- CVE-2026-768117.5HighRemote attackers can exfiltrate sensitive data from internal services or cloud metadata endpoints. This is possible because the tool fails to properly validate the request path, allowing SSRF.
- CVE-2026-1425027.1HighRemote attackers can crash applications or leak memory by providing a malicious HEIF image. This requires a user to open or process the crafted file.
- CVE-2026-1424927.8HighAttackers can achieve arbitrary code execution by tricking a user into opening a malicious IPS patch file. This requires the user to open a crafted ROM file with the malicious sidecar file present.
- CVE-2026-1424917.8HighAttackers can execute arbitrary Python code as the user running the application. This requires a user to load a malicious model or Hugging Face repository containing a crafted config.json.