CVE-2026-40086Danielgatis Rembg
Medium 5.3 No auth needed
Follow: this CVE · Danielgatis · Danielgatis Rembg We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Apr 10, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rembg.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | rembg |
< 2.0.75 |
2.0.75 |
pip install "rembg>=2.0.75" |
| PyPI | rembg |
< 2.0.75 |
2.0.75 |
pip install "rembg>=2.0.75" |
Per OSV / GitHub Advisories (GHSA-3wqj-33cg-xc48, PYSEC-2026-2274). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| danielgatis | rembg | < 2.0.75 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Product Release Notes
- github.com Exploit Mitigation Vendor Advisory