Description
BookStack before 26.05.4 contains a remote code execution vulnerability in the portable ZIP import functionality that allows users with Import Content and Create Books permissions to upload a PHP polyglot file as a book cover. Attackers can bypass image extension validation by embedding a PHP file with a .php filename in the ZIP archive, which is stored in the public web root and executed by unauthenticated requests.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bookstackapp | bookstack | < 26.05.4 | 26.05.4 |
References
- Patch Commit patch
- https://github.com/BookStackApp/BookStack product
- VulnCheck Advisory: BookStack before 26.05.4 Remote Code Execution via Book Cover third-party-advisory