Medium severity5.3NVD Advisory· Published Apr 10, 2026· Updated Apr 23, 2026
CVE-2026-40086
CVE-2026-40086
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rembgPyPI | < 2.0.75 | 2.0.75 |
Affected products
2Patches
Vulnerability mechanics
References
5- github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273nvdPatchWEB
- github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48nvdExploitMitigationVendor AdvisoryWEB
- github.com/advisories/GHSA-3wqj-33cg-xc48ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-40086ghsaADVISORY
- github.com/danielgatis/rembg/releases/tag/v2.0.75nvdProductRelease NotesWEB
News mentions
0No linked articles in our index yet.