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.
{
"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"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "9.12.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "dac9990458374a81a5372a768bba6527d965aac8"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v9.12.0",
"range": [
{
"fixed": "993dd952284ce4bb8199ddeef20643f94bb0b437"
}
],
"source": "REFERENCES_TAG"
}
]
}