CVE-2026-40086 json
Rembg has a Path Traversal via Custom Model Loading
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-21492 , GHSA-3wqj-33cg-xc48 , PYSEC-2026-2274
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi rembg 2.0.75
- danielgatis rembg 2.0.75
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | rembg | <2.0.75 |
2.0.75 |
Affected products
- danielgatis rembg
Classification
References
-
github.com
/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273
web, patch
-
github.com
/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48
web, exploit, mitigation, vendor-advisory, evidence
-
github.com
/danielgatis/rembg/releases/tag/v2.0.75
web, product, release-notes, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-40086
advisory
-
github.com
/danielgatis/rembg
package
Sources
- CVE List CVE-2026-40086
- GitHub Advisory GHSA-3wqj-33cg-xc48
- NVD CVE-2026-40086
- OSV PYSEC-2026-2274
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.