Bagpipes through 1.4.1 contains an eval injection vulnerability in bagpipes/fitting/fit.py and posterior.py that
Source GCVE Database
Not known to be exploited · CVSS 8.5 High.
Data as of 2 Dec 2026, 19:48 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ACCarnallBagpipes | Affected
| Fixed in– |
PyPIBagpipespkg:pypi/BagpipesOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid opening or processing untrusted posterior HDF5 files with Bagpipes fitting or plotting scripts until a fix is released. Monitor vendor advisories for updates. Since this is a local attack requiring user interaction, exercising caution with project files from untrusted sources is critical.
Description
Bagpipes versions up to 1.4.1 have an eval injection vulnerability in the files bagpipes/fitting/fit.py and posterior.py. This flaw allows attackers to execute arbitrary Python code by providing a specially crafted posterior HDF5 (.h5) file. The vulnerability arises because the fit_instructions attribute from the malicious .h5 file is passed directly to Python's eval() function, leading to code execution with the privileges of the user running the fitting or plotting scripts.
References
- nvd.nist.gov/vuln/detail/CVE-2026-142490 (opens in a new tab)
- github.com/ACCarnall/bagpipes/issues/121 (opens in a new tab)
- github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d (opens in a new tab)
- github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py (opens in a new tab)
- github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py (opens in a new tab)
- vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions (opens in a new tab)