Rembg has a Path Traversal via Custom Model Loading
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| danielgatis | rembg | before 2.0.75 | 2.0.75 | Patch available | CNA |
| — | rembg (PyPI) | before 2.0.75 | 2.0.75 | Patch available | GHSA-3wqj-33cg-xc48 |
- rembg Vendordanielgatis Affected before 2.0.75 Fixed in 2.0.75 Patch available CNA
- rembg (PyPI) Vendor— Affected before 2.0.75 Fixed in 2.0.75 Patch available GHSA-3wqj-33cg-xc48
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* | before 2.0.75 | Vulnerable | danielgatis |
- cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* Versions before 2.0.75 Vulnerable ·danielgatis
Remediation
- Fix · CNA rembg (danielgatis) Fixed in 2.0.75
- Fix · GHSA-3wqj-33cg-xc48 rembg (PyPI) Fixed in 2.0.75 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40086
- 2026-10-03 Alias added: GHSA-3wqj-33cg-xc48
References
More danielgatis Rembg vulnerabilities
- TI-2025-18956 Rembg CORS misconfiguration CVSS 4.0HIGH 8.7
- TI-2025-18955 Rembg allows SSRF via /api/remove CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-40086 · CVE Program
- CVE-2026-40086 · NVD
- FIRST EPSS
- GHSA-3wqj-33cg-xc48 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences