{"affected":[{"defaultStatus":"unaffected","ecosystem":"pypi","packageName":"bagpipes","product":"Bagpipes","source":"CNA: VulnCheck","vendor":"ACCarnall","versions":[{"lessThanOrEqual":"1.4.1","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-142490","cwes":["CWE-95"],"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.","epss":null,"exploits":[{"kind":"exploit","source":"ADP: CISA-ADP","url":"https://github.com/ACCarnall/bagpipes/issues/121"}],"kev":null,"metrics":[{"score":8.5,"severity":"high","source":"CNA: VulnCheck","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","version":"4.0"},{"score":7.8,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.5,"severity":"high","source":"NVD: disclosure@vulncheck.com","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","version":"4.0"},{"score":7.8,"severity":"high","source":"NVD: disclosure@vulncheck.com","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1796253520113,"publishedAt":1796233358589,"references":[{"source":"CNA: VulnCheck","tags":["issue-tracking"],"url":"https://github.com/ACCarnall/bagpipes/issues/121"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions"},{"source":"ADP: CISA-ADP","tags":["exploit"],"url":"https://github.com/ACCarnall/bagpipes/issues/121"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/fit.py#L130-L141"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/ACCarnall/bagpipes/blob/8ce12a164a6a990f319363950c89543d6f48da33/bagpipes/fitting/posterior.py#L52-L58"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/ACCarnall/bagpipes/issues/121"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://www.vulncheck.com/advisories/bagpipes-through-1.4.1-code-execution-via-eval-of-fit-instructions"},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":[],"url":"https://github.com/ACCarnall/bagpipes/issues/121"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/ACCarnall/bagpipes/commit/ef32e3363f359e75473703084f3299b2060c9d5d"}],"revision":"deb9d9096d1e9e83d1961bd10240d8aebb2e86f4ce03431879fc7a38b6ebf5a9","sources":[{"modifiedAt":1796252411828,"name":"CNA: VulnCheck","retrievedAt":1796252977625,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142490"},{"modifiedAt":1796253520113,"name":"NVD","retrievedAt":1796257299976,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142490"}],"ssvc":{"assessedAt":1796252383551,"automatable":"no","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"Bagpipes through 1.4.1 Code Execution via eval() of fit_instructions","updatedAt":1796257299976}