CVE-2026-49136

Source
https://cve.org/CVERecord?id=CVE-2026-49136
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49136.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-49136
Published
2026-06-01T19:09:51.443Z
Modified
2026-07-24T03:57:00.911834325Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Banana Slides 0.4.0 Path Traversal via generate_image() in ai_service.py
Details

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().

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49136.json",
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/anionex/banana-slides

Affected ranges

Type
GIT
Repo
https://github.com/anionex/banana-slides
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.4.0"
        }
    ]
}

Affected versions

v0.*
v0.3.0
v0.4.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49136.json"