{"id":"CVE-2026-137997","summary":"HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py","details":"HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.","modified":"2026-11-27T19:00:13.590828585Z","published":"2026-11-27T16:10:19.194Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-502"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137997.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137997.json"},{"type":"PACKAGE","url":"https://github.com/ehpor/hcipy"},{"type":"ARTICLE","url":"https://github.com/ehpor/hcipy/blob/v0.7.1/hcipy/util/io.py#L262-L264"},{"type":"FIX","url":"https://github.com/ehpor/hcipy/commit/ce3e08a85af8d3f43dae02e01c30b3231495e763"},{"type":"REPORT","url":"https://github.com/ehpor/hcipy/issues/423"},{"type":"FIX","url":"https://github.com/ehpor/hcipy/pull/424"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137997"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/hcipy-through-0.7.1-insecure-deserialization-via-pickle-files-in-io-py"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ehpor/hcipy","events":[{"introduced":"0"},{"last_affected":"32f2b4cef99533aa44cfbb08049bd3cbbe2c16a4"},{"fixed":"ce3e08a85af8d3f43dae02e01c30b3231495e763"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"0.7.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"ce3e08a85af8d3f43dae02e01c30b3231495e763"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.7.1","v0.7.0","v0.6.0","v0.5.1","v0.5.0","v0.4.0","v0.3.1","v0.3.0","v0.2","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137997.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"}]}