CVE-2026-142490

7.8High

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

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.

remediation — bash
$ pip install --upgrade bagpipes

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-142490

More fully triaged vulnerabilities you may want to check next.