CVE-2026-49136
published high CVSS 4.0 · 8.7Banana Slides 0.4.0 Path Traversal via generate_image() in ai_service.py
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Anionex | — | banana-slides0 through 0.4.0 (affected · semver) · e8bc490ec8b4b657e07dc3ab4e94fbedcaade421 (unaffected · git) · Other versions: affected | Version-specific | Not stated | VulnCheck |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Anionex | banana-slides | 0 through 0.4.0 (affected · semver)e8bc490ec8b4b657e07dc3ab4e94fbedcaade421 (unaffected · git)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
4Provider assertions
2VulnCheck · cna
Banana Slides 0.4.0 Path Traversal via generate_image() in ai_service.py
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5c6275d4a18860992335731accd5ad0354c2408c1cdec61de2156d3270342002
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record