CVE-2026-142490
Received Received - Intake

Eval Injection in Bagpipes via Malicious HDF5 Files

Vulnerability report for CVE-2026-142490, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ACCarnall Bagpipes From 0 (inc) to 1.4.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-142490 is an eval injection vulnerability in Bagpipes through version 1.4.1. It allows attackers to execute arbitrary Python code by providing a malicious posterior HDF5 file with a crafted fit_instructions attribute. When a user runs fitting or plotting scripts on a project folder containing this file, the embedded code executes with the user's privileges due to improper sanitization of the fit_instructions parameter passed to eval().

Detection Guidance

To detect this vulnerability, inspect HDF5 files in your project folders for malicious fit_instructions attributes. Check Bagpipes versions up to 1.4.1 and look for files with .h5 extensions containing suspicious code in their metadata. Use commands like 'find /path/to/project -name "*.h5" -exec h5dump -A {} \;' to examine file contents for eval() usage.

Impact Analysis

This vulnerability can lead to complete system compromise. Attackers can execute arbitrary commands, manipulate data, or install malware with the privileges of the user running the Bagpipes scripts. It poses risks for users who share project folders or download files from untrusted sources.

Compliance Impact

This vulnerability could violate compliance with GDPR and HIPAA by enabling unauthorized code execution, leading to data breaches, loss of confidentiality, or integrity issues. Organizations using Bagpipes may face legal and regulatory penalties if sensitive data is compromised due to this flaw.

Mitigation Strategies

Immediately upgrade Bagpipes to a patched version where eval() is replaced with a safer parser. Avoid opening project folders from untrusted sources. If using older versions, manually sanitize fit_instructions attributes or disable automatic reload of existing posteriors until updated.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142490. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...