---
title: "CVE-2026-142490: Bagpipes - Expression Language Injection"
description: "Bagpipes through 1.4.1 contains an expression language injection caused by eval() usage on fit_instructions attribute in posterior HDF5 files, letting attackers execute arbitrary Python code, exploit requires crafted malicious .h5 file."
url: https://panop.io/threat-heartbeat/CVE-2026-142490/
---

# CVE-2026-142490 Bagpipes - Expression Language Injection

Bagpipes through 1.4.1 contains an expression language injection caused by eval() usage on fit\_instructions attribute in posterior HDF5 files, letting attackers execute arbitrary Python code, exploit requires crafted malicious .h5 file.

CVSS base score 7.8 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142490)

## Details

Type

Expression Language Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Published

2 December 2026

Updated

3 December 2026

Weakness

[CWE-95](https://cwe.mitre.org/data/definitions/95.html)

## Vendor fix

Update to the latest version that fixes eval injection vulnerability.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-142490](https://nvd.nist.gov/vuln/detail/CVE-2026-142490)
- [https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141](https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141)
- [https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58](https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58)
- [https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d](https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d)
- [https://github.com/ACCarnall/bagpipes/issues/121](https://github.com/ACCarnall/bagpipes/issues/121)
- [https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions](https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
