{"id":"CVE-2026-49136","aliases":["CVE-2026-49136"],"related":[],"kind":"vulnerability","state":"published","title":"Banana Slides 0.4.0 Path Traversal via generate_image() in ai_service.py","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"Banana Slides a través de 0.4.0, parcheado en el commit e8bc490, contiene una vulnerabilidad de salto de ruta en la función generate_image() dentro del backend del servicio de IA que permite a atacantes no autenticados leer archivos arbitrarios en formato de imagen fuera del directorio uploads previsto, explotando una verificación incompleta del prefijo de ruta que utiliza os.path.startswith() sin un separador final. Los atacantes pueden proporcionar referencias de imagen de markdown manipuladas en descripciones de página controladas por el usuario que se resuelven en directorios hermanos cuyos nombres comparten el prefijo de la carpeta uploads, eludiendo la verificación de confinamiento del directorio y haciendo que la aplicación lea archivos de ubicaciones no deseadas a través de PIL Image.open().","source":"nvd"}],"published":"2026-06-01T19:09:51.443Z","modified":"2026-11-08T14:04:46.786Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.4.0","status":"affected"},{"type":"git","version":"e8bc490ec8b4b657e07dc3ab4e94fbedcaade421","status":"unaffected"}],"vendor":"Anionex","product":"banana-slides","repo":"https://github.com/Anionex/banana-slides","source":"cvelist"}],"references":[{"url":"https://github.com/Anionex/banana-slides/issues/429","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Anionex/banana-slides/pull/430","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Anionex/banana-slides/commit/e8bc490ec8b4b657e07dc3ab4e94fbedcaade421","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/banana-slides-path-traversal-via-generate-image-in-ai-service-py","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["YU SUN"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-02T15:39:26.996Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49136","url":"https://www.cve.org/CVERecord?id=CVE-2026-49136","licence":"CVE Terms of Use","modified":"2026-11-08T14:04:46.786Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49136","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49136","licence":"Public domain","modified":"2026-07-22T08:10:00.117Z"}],"updatedAt":"2026-11-25T22:59:23.494Z","epss":{"score":0.00417,"percentile":0.38028,"date":"2026-12-01T12:00:22.000Z"}}