Path traversal in Calibre - #VU146752
Published: September 2, 2026
Vulnerability details
The vulnerability allows a remote user to write arbitrary content to arbitrary filesystem paths.
The vulnerability exists due to path traversal in the /cdb/cmd/add endpoint in src/calibre/db/cli/cmd_add.py when processing a remote book upload. A remote user can supply a crafted fname parameter containing ../ sequences to write arbitrary content to arbitrary filesystem paths.
The file write occurs before subsequent processing, so the write can complete even if the request later returns an error.