CVE-2026-115924

published 26 Oct 2026 · updated 31 Oct 2026

Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs

8.6HighCVSS 8.6EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
danielgatis<2.0.82

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-115924 severity on Zeptric[![CVE-2026-115924](https://zeptric.io/badge/cve/CVE-2026-115924.svg)](https://zeptric.io/cve/CVE-2026-115924)