CVE-2026-115924
HIGH 8.6CVSS 3.1Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
Rembg is a tool to remove images background. Prior to 2.0.82, the public /api/remove endpoint passes attacker-controlled extras.sam_model through rembg/commands/s_command.py to rembg/sessions/sam.py, where it is interpolated into SAM filenames and GitHub download URLs passed to pooch.retrieve() without a pinned hash. An unauthenticated attacker can supply a sam_model value combining path traversal with URL fragment syntax to exploit the HTTP request discarding the fragment while the local POSIX path retains it. The first request primes the attacker-selected path tree, and an identical repeated request downloads malicious ONNX encoder and decoder files beside a readable target file. The graphs can load the target through ONNX external data and encode its bytes into the returned PNG mask, disclosing complete files accessible to the rembg process and allowing arbitrary ONNX computation. This issue is fixed in version 2.0.82.
- Published
- 26 Oct 2026
- Last modified
- 31 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-qr6x-7v33-6qmg
- Sources
- NVDJSONOSV GHSA-qr6x-7v33-6qmgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | rembg | < 2.0.82 | 2.0.82 |
References
- https://github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3 · WEB
- https://github.com/danielgatis/rembg/releases/tag/v2.0.82 · WEB
- https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-115924 · ADVISORY
- https://github.com/danielgatis/rembg · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 26 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Oct 2026)