# CVE-2026-142490: Bagpipes through 1.4.1 Code Execution via eval() of fit\_instructions

- **Severity:** HIGH 8.5
- **CVSS:** 8.5 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-95
- **Published:** 2026-12-02T17:42:38.589Z
- **Modified:** 2026-12-02T23:18:40.113Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can supply a crafted HDF5 posterior file so that Bagpipes executes arbitrary Python code via eval() as the user running fitting or plotting scripts.

## Who should check

- Anyone running ACCarnall Bagpipes \<= 1.4.1

## 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.

## Affected and fixed versions

- ACCarnall Bagpipes: \<= 1.4.1 (cvelist)

## Technologies

Python (AI-matched)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142490. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142490.md
Affected: ACCarnall Bagpipes <= 1.4.1
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for ACCarnall Bagpipes: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142490 being exploited?

There is no confirmed exploitation: CVE-2026-142490 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available.

### How serious is CVE-2026-142490?

High: CVSS 8.5 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-142490?

ACCarnall Bagpipes \<= 1.4.1.

### Is there a fix for CVE-2026-142490?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142490?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d>
- exploit: <https://github.com/ACCarnall/bagpipes/issues/121>
- article: <https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141>
- article: <https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58>
- other: <https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142490>

HTML: <https://flawdb.com/CVE-2026-142490> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142490>
