9.3critical
calibre: Path Traversal Vulnerability Enables Arbitrary File Write and Remote Code Execution
- Severity
- 9.3critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.01% (higher than 62% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
calibre is a cross-platform e-book manager for viewing, converting, editing, and cataloging e-books. Versions 9.2.1 and below contain a Path Traversal vulnerability that allows arbitrary file writes anywhere the user has write permissions. On Windows, this leads to Remote Code Execution by writing a payload to the Startup folder, which executes on next login. Function extract_pictures only checks startswith('Pictures'), and does not sanitize '..' sequences. calibre's own ZipFile.extractall() in utils/zipfile.py does sanitize '..' via _get_targetpath(), but extract_pictures() bypasses this by using manual zf.read() + open(). This issue has been fixed in version 9.3.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| kovidgoyal calibre | < 9.3.0 | CVE List |
| calibre-ebook calibre | before 9.3.0 | NVD |
All scores
| GitHub_M | 9.3critical CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
calibre is a cross-platform e-book manager for viewing, converting, editing, and cataloging e-books. Versions 9.2.1 and below contain a Path Traversal vulnerability that allows arbitrary file writes anywhere the user has write permissions. On Windows, this leads to Remote Code Execution by writing a payload to the Startup folder, which executes on next login. Function extract_pictures only checks startswith('Pictures'), and does not sanitize '..' sequences. calibre's own ZipFile.extractall() in utils/zipfile.py does sanitize '..' via _get_targetpath(), but extract_pictures() bypasses this by using manual zf.read() + open(). This issue has been fixed in version 9.3.0.
NVD (es)
calibre es un gestor de libros electrónicos multiplataforma para ver, convertir, editar y catalogar libros electrónicos. Las versiones 9.2.1 e inferiores contienen una vulnerabilidad de salto de ruta que permite la escritura arbitraria de archivos en cualquier lugar donde el usuario tenga permisos de escritura. En Windows, esto conduce a la ejecución remota de código al escribir una carga útil en la carpeta de Inicio, que se ejecuta en el siguiente inicio de sesión. La función extract_pictures solo verifica startswith('Pictures') y no sanea las secuencias '..'. El propio ZipFile.extractall() de calibre en utils/zipfile.py sí sanea '..' a través de _get_targetpath(), pero extract_pictures() omite esto al usar zf.read() + open() manual. Este problema ha sido solucionado en la versión 9.3.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26064 changed 2026-02-20 | CVE Terms of Use |
| NVD | CVE-2026-26064 changed 2026-06-17 | Public domain |