{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "9.10.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "712f4e1ff5c1e798c335bef3bacc4efdee052e9c"
            },
            {
              "fixed": "d90f85753312d9c5fbd22ff687b83839282fc393"
            }
          ],
          "repo": "https://github.com/kovidgoyal/calibre",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-2j4m-2q7x-2c47"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53511.json"
  },
  "details": "calibre is an e-book manager. Prior to 9.10.0, a malicious EPUB, OPF, or PDF file can execute arbitrary Python code when its metadata is read by calibre, including through Add books or Edit books, by embedding a custom column definition with a python: template in calibre:user_metadata that is passed unsanitized to exec() in the template formatter. This issue is fixed in version 9.10.0.",
  "id": "CVE-2026-53511",
  "modified": "2026-07-12T03:55:17.957566586Z",
  "published": "2026-07-07T20:46:49.199Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/kovidgoyal/calibre/releases/tag/v9.10.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53511.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kovidgoyal/calibre/security/advisories/GHSA-2j4m-2q7x-2c47"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53511"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kovidgoyal/calibre/commit/712f4e1ff5c1e798c335bef3bacc4efdee052e9c"
    }
  ],
  "schema_version": "1.7.5",
  "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: Arbitrary Code Execution in Template Formatter via Book Metadata"
}