CVE-2026-49136
Path Traversal in Banana Slides AI Service
Publication date: 2026-06-01
Last updated on: 2026-06-01
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| banana_slides | banana_slides | 0.4.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in Banana Slides version 0.4.0 in the generate_image() function of the AI service backend. It is a path traversal vulnerability that allows unauthenticated attackers to read arbitrary image-format files outside the intended uploads directory.
The issue arises because the application uses an incomplete path prefix check with os.path.startswith() without a trailing separator. Attackers can craft markdown image references in user-controlled page descriptions that resolve to sibling directories sharing the uploads folder prefix, bypassing the directory confinement check.
As a result, the application may read files from unintended locations using the PIL Image.open() function.
How can this vulnerability impact me? :
This vulnerability can impact you by allowing attackers to read sensitive image files outside the designated uploads directory without authentication.
Since the vulnerability allows arbitrary file reading, attackers could potentially access confidential or private image data stored on the server, leading to information disclosure.
The CVSS v3.1 score of 7.5 (High) and v4.0 score of 8.7 (High) reflect the severity of this vulnerability, indicating a significant risk of confidentiality breach.