# NVD CVE: CVE-2026-115924 — 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 — retained record

> Retained nvd record from nvd:github.

Canonical: https://highsignal.app/data/records/bedb5656733336e6

[← sources](https://highsignal.app/data)


source: [nvd](https://highsignal.app/data/nvd) (nvd:github)  published 2026-10-26 20:17 ingested 2026-10-27 02:34

[original source ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-115924)

## retained text



```
CVSS: 8.6 HIGH
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.
References: https://github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3 https://github.com/danielgatis/rembg/releases/tag/v2.0.82 https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg
```



document fetched 2026-10-27 02:34
