CVE-2026-40086
MediumCVSS 5.3Exploitation Probability (EPSS)
Low risk48th percentile - higher than 48% of all known CVEs
Summary
In rembg before 2.0.75, a path traversal vulnerability in the HTTP server allows unauthenticated remote attackers to read arbitrary files from the filesystem. By sending a crafted model_path parameter, an attacker can force the server to attempt loading any file as an ONNX model, revealing file existence, permissions, and potentially contents.
Risk Assessment
An unauthenticated attacker could obtain file information and potentially contents, breaching confidentiality.
Recommendation
Update rembg to version 2.0.75, which fixes this vulnerability.
Other vulnerabilities in rembg
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

