{"id":"CVE-2026-142490","aliases":["EUVD-2026-141735","GHSA-c7vf-fh36-rqmq"],"status":"published","title":"Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions","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.","severity":{"version":"4.0","score":8.5,"vector":"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","level":"high","assessor":"cna","from":"cve","others":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},{"version":"4.0","score":8.5,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","from":"ghsa"}]},"epss":{"day":"2026-12-04","score":0.00469,"percentile":0.42272,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false,"poc_reported":true},"cwes":["CWE-95"],"published":"2026-12-02T17:42:38Z","modified":"2026-12-04T16:38:28Z","products":[{"vendor":"accarnall","product":"bagpipes"}],"references":[{"url":"https://github.com/ACCarnall/bagpipes/issues/121","tags":["issue-tracking","exploit","report"]},{"url":"https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d","tags":["patch","fix"]},{"url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141","tags":["technical-description","article"]},{"url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142490","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c7vf-fh36-rqmq"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142490.json","tags":["advisory"]},{"url":"https://github.com/ACCarnall/bagpipes","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-142490","title":"Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions","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.","status":"published","published":"2026-12-02T17:42:38.589Z","modified":"2026-12-02T23:00:11.828Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high","assessor":"cna"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-95"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total","date":"2026-12-02"},"updated_at":"2026-12-02T23:04:34.412859Z"}],"euvd":[{"id":"EUVD-2026-141735","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.","status":"published","published":"2026-12-02T17:42:38Z","modified":"2026-12-02T23:00:11Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high"}],"updated_at":"2026-12-02T21:27:22.841078Z"}],"ghsa":[{"id":"GHSA-c7vf-fh36-rqmq","title":"Bagpipes through 1.4.1 contains an eval injection vulnerability in bagpipes/fitting/fit.py and...","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.","status":"published","published":"2026-12-02T18:31:56Z","modified":"2026-12-02T18:32:04Z","cvss":[{"version":"4.0","score":8.5,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-95"],"updated_at":"2026-12-02T18:38:44.755025Z"}],"nvd":[{"id":"CVE-2026-142490","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.","status":"published","published":"2026-12-02T18:19:00.893Z","modified":"2026-12-04T16:38:28.523Z","cvss":[{"version":"4.0","score":8.5,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-95"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total","date":"2026-12-02"},"updated_at":"2026-12-02T23:19:38.051602Z"}],"osv":[{"id":"CVE-2026-142490","title":"Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions","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.","status":"published","published":"2026-12-02T17:42:38.589Z","modified":"2026-12-03T21:01:08.767837094Z","cvss":[{"version":"4.0","score":8.5,"vector":"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","level":"high"}],"cwes":["CWE-95"],"updated_at":"2026-12-03T21:10:10.25251Z"}]}}
