Kovidgoyal calibre
calibre: Arbitrary Code Execution in Template Formatter via Book Metadata
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.5high · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
kovidgoyal calibre
- < 9.10.0
Fixed in 9.10.0
Mitigation
Upgrade calibre to 9.10.0 or later.
References
- Vendor advisory github.com/kovidgoyal/calibre/security/advisor…
- Patch github.com/kovidgoyal/calibre/commit/712f4e1ff…
- Release notes github.com/kovidgoyal/calibre/releases/tag/v9.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.