CVE Explorer
CVE-2026-40086
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-73","description":"CWE-73: External Control of File Name or Path","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"rembg","vendor":"danielgatis","versions":[{"status":"affected","version":"< 2.0.75"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-73","description":"CWE-73: External Control of File Name or Path","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273","tags":["x_refsource_MISC"],"url":"https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/references/1
{"name":"https://github.com/danielgatis/rembg/releases/tag/v2.0.75","tags":["x_refsource_MISC"],"url":"https://github.com/danielgatis/rembg/releases/tag/v2.0.75"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/references/2
{"name":"https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48","tags":["x_refsource_CONFIRM"],"url":"https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3205d4da86bf461364aa383a78323723da9731cf34a6dd98b84580c795634239 · sha256:9e3167c32205b86f… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.