# CVE-2026-115924: Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-26T19:22:52.720Z
- Modified: 2026-10-31T02:17:29.783Z
- Also known as: GHSA-qr6x-7v33-6qmg
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- danielgatis rembg: < 2.0.82
- rembg (PyPI): before 2.0.82

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`

## References

- <https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg> (exploit, web)
- <https://github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3> (web)
- <https://github.com/danielgatis/rembg/releases/tag/v2.0.82> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-115924> (advisory)
- <https://github.com/danielgatis/rembg> (package)

## Sources

- CVE List: [CVE-2026-115924](https://www.cve.org/CVERecord?id=CVE-2026-115924), CVE Terms of Use, modified 2026-10-31
- GitHub Advisory Database: [GHSA-qr6x-7v33-6qmg](https://github.com/advisories/GHSA-qr6x-7v33-6qmg), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-115924](https://nvd.nist.gov/vuln/detail/CVE-2026-115924), Public domain, modified 2026-10-31

---

Page: https://cve.day/CVE-2026-115924 · Whole record: https://cve.day/CVE-2026-115924.json · Rebuilt by cve.day 2026-11-25T22:59:47.185Z
