rembg lets anyone read server files through its background-removal API
Attackers can send a crafted request to the image tool and get back the contents of files on the server, such as system settings or secrets. The attack needs no login.
| Severity | HighCVSS 8.6 of 10 |
|---|---|
| Being exploited? | UnclearNo reports either way yet |
| Fix available? | Yes2.0.82 · since 27 Oct 2026 |
| How sure is this? | Official, 2 sourcesBacked by an official source |
How the attack works simplified
- 1AttackerSends crafted request without logging in
- 2rembg APIPasses sam_model value into file paths and URLs
- 3Server filesMalicious ONNX models placed beside target file
- 4Data leakFile bytes encoded into returned PNG mask
- ResultAttacker reads server files
What happened
rembg before 2.0.82 passes an attacker-controlled sam_model value from the public /api/remove endpoint into file paths and GitHub download URLs, enabling path traversal, unverified model downloads, and ONNX external-data file reads encoded into PNG output.
Are you affected?
You are affected if you run rembg 2.0.81 or earlier with the SAM model options exposed through a publicly reachable /api/remove endpoint.
| Package / product | Affected versions | Fixed in |
|---|---|---|
| rembg · pip | < 2.0.82 | 2.0.82 |
What to do
- Update rembg to version 2.0.82 or later (pip install -U rembg>=2.0.82)
- If you cannot update now, block public access to /api/remove or disable the extras.sam_model option
- Check logs for repeated /api/remove requests containing sam_model values with '../' or '#'
- Run the service with minimal filesystem permissions and not as root
Timeline
- 26 Oct 2026, 20:17 UTCPublicly disclosed
- 26 Oct 2026, 20:17 UTCReported by NVD · NVD
- 26 Oct 2026, 20:18 UTCPicked up by Zero Radar
- 27 Oct 2026, 14:46 UTCGitHub Advisory reported on it · GitHub Advisory
- 27 Oct 2026, 14:46 UTCFixed version published: rembg 2.0.82 · GitHub Advisory
Sources 2 reports, oldest first
Official vendor, government CERT or advisory database
- CVE-2026-115924NVD · 26 Oct 2026, 20:17 UTC
- Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphsGitHub Advisory · 27 Oct 2026, 14:45 UTC
Technical details
- ID
- CVE-2026-115924 · GHSA-qr6x-7v33-6qmg
- CVSS
- 8.6 / 10
- EPSS
- 0.4% chance of exploitation within 30 days
- Disclosed
- 26 Oct 2026, 20:17 UTC
- On Zero Radar
- 26 Oct 2026, 20:18 UTC (0 min after disclosure)
- Last change
- 27 Oct 2026, 14:46 UTC
The plain-language parts and the attack diagram were written by an AI model (anthropic/claude-haiku-5.5) from the sources above. Facts like versions, exploitation and dates come from the sources themselves. How Zero Radar works