All vulnerabilities

PyPI

CVE-2026-142490

Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions

Severity
High 8.5
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
Eval injection (CWE-95)
Attack
Needs local access · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
bagpipesPyPI · osv:PyPI:bagpipes
  • Every version up to 1.4.1

About bagpipes

Weekly downloads (PyPI)
539PyPI Stats, 2 Dec 2026

This is the only vulnerability in bagpipes in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142490