Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-40086 EUVD-2026-21492GHSA-3wqj-33cg-xc48PYSEC-2026-2274

Rembg has a Path Traversal via Custom Model Loading

Published Apr 10, 2026 · Updated Apr 10, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
danielgatis rembg < 2.0.75 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI rembg < 2.0.75 2.0.75 GHSA-3wqj-33cg-xc48

References