CVE-2026-115924 json
Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
published 2026-10-26 13 d ago modified 2026-10-31 9 d ago also GHSA-qr6x-7v33-6qmg , EUVD-2026-110073
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi rembg 2.0.82
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 9 d ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | rembg | <2.0.82 |
2.0.82 |
Affected products
- danielgatis rembg
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3
web
-
github.com
/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg
exploit, web
-
github.com
/danielgatis/rembg/releases/tag/v2.0.82
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-115924
advisory
-
github.com
/danielgatis/rembg
package
Sources
- CVE List CVE-2026-115924
- GitHub Advisory GHSA-qr6x-7v33-6qmg
- NVD CVE-2026-115924
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.