{
  "id": "CVE-2026-73248",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-73248",
  "published_at": "2026-08-11T21:56:08.569Z",
  "title": "calibre: Bypass of Python template restrictions via nested `template()` leading to RCE",
  "vendor": "kovidgoyal",
  "product": "calibre",
  "cvss": {
    "score": 8.5,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 8.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "kovidgoyal",
        "product": "calibre",
        "ranges": [
          "\u003c 9.12.0"
        ],
        "fixed_in": [
          "9.12.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade calibre to 9.12.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/kovidgoyal/calibre/security/advisories/GHSA-4f7g-rjfp-hmvx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/kovidgoyal/calibre/commit/dac9990458374a81a5372a768bba6527d965aac8"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/kovidgoyal/calibre/releases/tag/v9.12.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
