CVE-2026-49136 Banana Slides 0.4.0 Path Traversal via generate_image() in ai_service.py
Unauthenticated attackers can read arbitrary image files outside the uploads directory via path traversal in the AI service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-49136?
CVE-2026-49136 is a high-severity path traversal vulnerability in Anionex banana-slides, published on 1 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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().
Weakness: CWE-22
Which versions are affected by CVE-2026-49136?
How do I fix CVE-2026-49136?
No fix has been published for CVE-2026-49136 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-49136 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49136 exists.
Sources
Also known as GHSA-f757-35w9-6h9q.