{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "9.12.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "dac9990458374a81a5372a768bba6527d965aac8"
            },
            {
              "fixed": "993dd952284ce4bb8199ddeef20643f94bb0b437"
            }
          ],
          "repo": "https://github.com/kovidgoyal/calibre",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4f7g-rjfp-hmvx"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94",
      "CWE-95"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73248.json"
  },
  "details": "calibre is an e-book manager. Prior to 9.12.0, calibre processes attacker-controlled composite_template metadata from a malicious EPUB, OPF, PDF, or similar file through program: and a nested template() call whose formatter does not inherit allow_python_templates=False, allowing a nested python: template to reach compile_python_template and execute arbitrary Python code when the file is opened or imported. This issue is fixed in version 9.12.0.",
  "id": "CVE-2026-73248",
  "modified": "2026-08-14T03:51:57.526441063Z",
  "published": "2026-08-11T21:56:08.569Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/kovidgoyal/calibre/releases/tag/v9.12.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73248.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kovidgoyal/calibre/security/advisories/GHSA-4f7g-rjfp-hmvx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-73248"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kovidgoyal/calibre/commit/dac9990458374a81a5372a768bba6527d965aac8"
    }
  ],
  "schema_version": "1.9.0",
  "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": "calibre: Bypass of Python template restrictions via nested `template()` leading to RCE"
}