What’s Vulnerable › Vulnerabilities
CVE-2026-40086: Rembg has a Path Traversal via Custom Model Loading
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-04-10 · updated 2026-10-26
- Weakness: CWE-22
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
- danielgatis rembg: before 2.0.75 — fixed in 2.0.75
How to fix
Upgrade to a fixed version: danielgatis rembg 2.0.75. Check the vendor advisory for mitigations.
References
- https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273
- https://github.com/danielgatis/rembg/releases/tag/v2.0.75
- https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48
Get alerted when CVE-2026-40086 or the next vulnerability affects your stack