CVE-2026-40086
MEDIUM 5.3CVSS 3.1Rembg has a Path Traversal via Custom Model Loading
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.
- Published
- 10 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-3wqj-33cg-xc48PYSEC-2026-2274
- Sources
- NVDJSONOSV GHSA-3wqj-33cg-xc48JSONOSV PYSEC-2026-2274JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | danielgatis | rembgcpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* |
< 2.0.75 | 2.0.75 |
| OSV | PyPI | rembg | < 2.0.75 | 2.0.75 |
References
- https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273 · Patch, WEB, FIX
- https://github.com/danielgatis/rembg/releases/tag/v2.0.75 · Product, Release Notes, WEB, ADVISORY
- https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48 · Exploit, Mitigation, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-40086 · ADVISORY
- https://github.com/danielgatis/rembg · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Apr 2026)