PT-2026-45559 · Anionex+1 · Banana-Slides
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Banana Slides versions prior to 0.4.0
Description
The AI service backend contains a path traversal issue in the
generate image() function. This occurs due to an incomplete path prefix check using os.path.startswith() without a trailing separator, which fails to properly confine file access to the intended uploads directory. Unauthenticated attackers can exploit this by providing crafted markdown image references in user-controlled page descriptions. This allows the application to read arbitrary image-format files from sibling directories that share the same prefix as the uploads folder via PIL Image.open().Recommendations
Update Banana Slides to the version containing commit e8bc490.
As a temporary mitigation, restrict the use of the
generate image() function.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Banana-Slides