{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.7.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "ce3e08a85af8d3f43dae02e01c30b3231495e763"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "32f2b4cef99533aa44cfbb08049bd3cbbe2c16a4"
            },
            {
              "fixed": "ce3e08a85af8d3f43dae02e01c30b3231495e763"
            }
          ],
          "repo": "https://github.com/ehpor/hcipy",
          "type": "GIT"
        }
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-137997",
  "modified": "2026-11-27T18:45:52.968675114Z",
  "published": "2026-11-27T16:10:19.194Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py"
}