Skip to main content
Vulnerability Database/CVE-2026-108603

CVE-2026-108603: slide-maker Path Traversal Vulnerability

CVE-2026-108603 is a path traversal flaw in slide-maker through version 5.8.0 that lets attackers write files outside intended directories. This post covers technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108603 Overview

CVE-2026-108603 is a path traversal vulnerability [CWE-22] in the slide-maker project through version 5.8.0. The flaw resides in generate_images_openai.py, which writes image files to paths derived from a manifest without validating filename contents. An attacker who can influence the deck source material can supply manifest entries containing ../ sequences or symbolic links. The script then creates directories and overwrites files at arbitrary locations outside the intended output directory.

Critical Impact

Attackers can overwrite arbitrary files on the local system by poisoning the image prompt manifest consumed by generate_images_openai.py, enabling tampering with configuration, scripts, or user data.

Affected Products

  • addsumtech/slides_maker (slide-maker skill)
  • All versions through 5.8.0
  • Deployments using scripts/generate_images_openai.py for image generation

Discovery Timeline

  • 2026-10-10 - CVE-2026-108603 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108603

Vulnerability Analysis

The generate_images_openai.py script reads an image prompt manifest produced during deck generation. For each entry, the script constructs an output path by joining a configured output directory with a filename taken directly from the manifest. The code does not canonicalize the resulting path or verify that it stays within the intended output directory. Attackers who control manifest content can therefore direct writes to any filesystem location reachable by the executing user.

Because the script also creates missing parent directories, exploitation is not limited to writing within pre-existing directory trees. The attacker can both create new directory structures and overwrite existing files. Symbolic links referenced by manifest filenames are followed during write operations, extending the reach of the primitive.

See the VulnCheck Advisory for Slide Maker and the GitHub Image Generation Script (Lines 270-285) for the implicated code regions.

Root Cause

The root cause is missing path validation when writing generated image files. The implementation trusts attacker-influenceable manifest fields as safe filename components. Neither os.path.realpath comparison against the output directory nor filename sanitization is performed before file I/O.

Attack Vector

Exploitation requires local access and user interaction, as the vulnerable script runs when a user generates slides from attacker-supplied source material. An attacker crafts deck source content that causes the prompt manifest to contain filenames such as ../../etc/attacker_file or symlinked paths. When the victim runs the slide generation workflow, the image writer resolves these paths relative to the output directory, writing or overwriting files outside it. The impact is bounded by the filesystem permissions of the user running the script.

No verified exploit code is published. Readers should consult the HackMD Security Documentation for additional analysis of the vulnerable code paths.

Detection Methods for CVE-2026-108603

Indicators of Compromise

  • Image prompt manifests containing ../, absolute paths, or filenames referencing symbolic links.
  • Unexpected files or directories created outside the configured slide-maker output directory during generation.
  • Modified timestamps on sensitive files immediately after a slide generation run.

Detection Strategies

  • Audit source control for slide-maker deployments and inspect any pre-generation manifests for suspicious filename components.
  • Instrument generate_images_openai.py or wrap it with a shim that logs each resolved write path and flags paths outside the output directory.
  • Review process execution telemetry for python invocations of generate_images_openai.py followed by writes to non-standard locations.

Monitoring Recommendations

  • Enable filesystem auditing on directories accessed by users who run slide-maker workflows.
  • Alert on file creation events where the parent directory does not match the approved output path.
  • Monitor for symbolic link creation in directories where manifest files are staged.

How to Mitigate CVE-2026-108603

Immediate Actions Required

  • Restrict execution of generate_images_openai.py to trusted deck source material only.
  • Run the slide generation workflow under a dedicated low-privilege account with no write access to sensitive paths.
  • Validate and sanitize manifest contents before invoking the script, rejecting entries with path separators or parent-directory tokens.

Patch Information

No fixed version is identified in the published advisory. Users should track the GitHub Slides Maker Repository for a release addressing CVE-2026-108603 and apply updates when available.

Workarounds

  • Patch local copies of generate_images_openai.py to call os.path.realpath on the resolved output path and reject writes that escape the configured output directory.
  • Strip or reject manifest filenames containing /, \, or .. sequences before file I/O.
  • Execute the generator inside a filesystem sandbox (for example, a container with a read-only root and a bind-mounted output directory) to contain any arbitrary write primitive.
bash
# Configuration example: run slide-maker in a constrained container
docker run --rm \
  --read-only \
  --tmpfs /tmp \
  -v "$(pwd)/output:/app/output" \
  -u 1000:1000 \
  slide-maker:latest \
  python scripts/generate_images_openai.py --output /app/output

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.