Advisory record · GHSA-qr6x-7v33-6qmg

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

CVSS 8.6 HighEPSS 0.0039 · 33rd percentile

Published by the GitHub Advisory Database at 27 Oct 2026, 14:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
rembgPyPI<2.0.822.0.82
Identifiers
GHSA-qr6x-7v33-6qmg · CVE-2026-115924
Weakness (CWE)
CWE-22
Published
27 Oct 2026
Updated
27 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The rembg Python package, versions before 2.0.82, has a flaw in its SAM model handling: the public /api/remove endpoint uses an attacker-supplied sam_model value to build file paths and download URLs without validation. An unauthenticated remote attacker can use path traversal and a URL fragment to place crafted ONNX models next to a target file, then have the service return that file's contents encoded in a PNG mask. Upgrade to rembg 2.0.82, which fixes the issue.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.6 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0039, the 33rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 26 Oct 2026, 19:22 UTC Confirmed by the CVE List
  2. 31 Oct 2026, 14:07 UTC First seen by agentprime
  3. 31 Oct 2026, 14:07 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.