Description
BookLore through 2.4.0 contains a path traversal vulnerability that allows users with metadata edit permission to relocate book files outside the library root by setting metadata values to '..'. Because PathPatternResolver.sanitize() keeps '..' and FileMoveHelper.generateNewFilePath() never normalizes the joined path or checks it against the library root, the next pattern-based move writes book files and audiobook directories to server-writable locations above the library folder.
Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| booklore-app | BookLore | <= 2.4.0 |
References
- https://github.com/booklore-app/booklore/blob/v2.4.0/booklore-api/src/main/java/org/booklore/service/file/FileMoveHelper.java#L170-L177
- https://github.com/booklore-app/booklore/blob/v2.4.0/booklore-api/src/main/java/org/booklore/service/file/FileMoveService.java#L312-L319
- https://github.com/booklore-app/booklore/blob/v2.4.0/booklore-api/src/main/java/org/booklore/util/PathPatternResolver.java#L287-L290
- https://github.com/booklore-app/booklore/releases/tag/v2.4.0
- https://www.vulncheck.com/advisories/booklore-through-2.4.0-path-traversal-via-metadata-values-in-file-move
Timeline
- Published
- Dec 2, 2026
- Last modified
- Dec 3, 2026
- NVD status
- Deferred