CVE-2026-49136 Details
Description
Banana Slides through 0.4.0, patched in commit e8bc490, contains a path traversal vulnerability in the generate_image() function within the AI service backend that allows unauthenticated attackers to read arbitrary image-format files outside the intended uploads directory by exploiting an incomplete path prefix check using os.path.startswith() without a trailing separator. Attackers can supply crafted markdown image references in user-controlled page descriptions that resolve to sibling directories whose names share the uploads folder prefix, bypassing the directory confinement check and causing the application to read files from unintended locations via PIL Image.open().
A path traversal vulnerability has been identified in Banana Slides version 0.4.0, within the AI service backend's generate_image() function. This vulnerability allows unauthenticated attackers to read arbitrary image files from outside the designated uploads directory. The issue arises from an inadequate path prefix check that fails to account for trailing separators, enabling exploitation by crafting markdown image references in user-controlled page descriptions. Attackers can manipulate the references to access sibling directories that share the uploads folder prefix, bypassing directory confinement and causing the application to read files from unintended locations using PIL's Image.open() function.
Users can update to Banana Slides version 0.4.1 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 1, 2026CISA-ADP
Assessed Jun 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Anionex/banana-slides/commit/e8bc490ec8b4b657e07dc3ab4e94fbedcaade421 | [email protected] | Source CodeVendor |
| https://github.com/Anionex/banana-slides/issues/429 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/Anionex/banana-slides/pull/430 | [email protected] | Issue TrackingVendor |
| https://www.vulncheck.com/advisories/banana-slides-path-traversal-via-generate-image-in-ai-service-py | [email protected] | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Anionex Banana Slides | <= 0.4.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | New CVE Received | [email protected] |
Volerion