Skip to content

CVE-2026-142490 Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions

HighCVSS 8.5
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi bagpipes <= 1.4.1 after 1.4.1 Fixed

Affected products

ProductAffected versionsFixed in
pypi bagpipes <= 1.4.1 No fix listed

References