{"id":"CVE-2026-142490","summary":"Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions","details":"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.","modified":"2026-12-02T19:00:16.361688393Z","published":"2026-12-02T17:42:38.589Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-95"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142490.json","unresolved_ranges":[{"extracted_events":[{"range":[{"last_affected":"1.4.1"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]},{"extracted_events":[{"range":[{"last_affected":"1.4.1"}],"source":"DESCRIPTION"}]}]},"references":[{"type":"PACKAGE","url":"https://github.com/ACCarnall/bagpipes"},{"type":"ARTICLE","url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141"},{"type":"ARTICLE","url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58"},{"type":"FIX","url":"https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d"},{"type":"REPORT","url":"https://github.com/ACCarnall/bagpipes/issues/121"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142490.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142490"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/accarnall/bagpipes","events":[{"introduced":"0"},{"fixed":"ef32e3363f359e75473703084f3299b2060c9d5d"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"ef32e3363f359e75473703084f3299b2060c9d5d"}],"source":"REFERENCES_COMMIT"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142490.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}