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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi bagpipes | <= 1.4.1 | after 1.4.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi bagpipes | <= 1.4.1 | No fix listed |
References
- github.com issue-tracking
- github.com patch
- github.com technical-description
- github.com technical-description
- VulnCheck Advisory: Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions third-party-advisory
- ENISA EUVD EUVD-2026-141735 third-party-advisory