Skip to main content
← All vulnerabilities
CVE-2026-40086PYSEC-2026-2274GHSA-3WQJ-33CG-XC48

Rembg has a Path Traversal via Custom Model Loading

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.75
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

Rembg is a tool to remove images background. Prior to 2.0.75, a path traversal vulnerability in the rembg HTTP server allows unauthenticated remote attackers to read arbitrary files from the server's filesystem. By sending a crafted request with a malicious model_path parameter, an attacker can force the server to attempt loading any file as an ONNX model, revealing file existence, permissions, and potentially file contents through error messages. This vulnerability is fixed in 2.0.75.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • danielgatis rembg

    fixed in 2.0.75

  • rembgPyPI

    fixed in 2.0.75

References 3

GitHub · danielgatis/rembg