Kovidgoyal calibre
calibre Content Server `/book-update-annotations` Missing Write Authorization Check Allows Unauthorized Annotation Modification
calibre is an e-book manager. Prior to 9.12.0, the calibre Content Server endpoint POST /book-update-annotations/{library_id}/{book_id}/{fmt} in src/calibre/srv/books.py omits needs_db_write=True, causing Router.dispatch() to skip ctx.check_for_write_access() before update_annotations() passes attacker-controlled JSON to db.merge_annotations_for_book(), which allows a readonly user or an anonymous user on an unauthenticated deployment to persist unauthorized book annotation changes. This issue is fixed in version 9.12.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.12.0
Fixed in 9.12.0
Mitigation
Upgrade calibre to 9.12.0 or later.
References
- Vendor advisory github.com/kovidgoyal/calibre/security/advisor…
- Patch github.com/kovidgoyal/calibre/commit/71295e8b6…
- 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.