CVE-2026-115924: Rembg · Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
Affects rembgSource GCVE Database
Not known to be exploited · CVSS 8.6 High : upgrade to 2.0.82 soon.
Data as of 27 Oct 2026, 15:13 UTC
- Patch
- Available – fixed in 2.0.82
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 26 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade rembg to 2.0.82.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIrembg | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade rembg to version 2.0.82 or later, where this vulnerability is fixed. The fix includes restricting SAM model identifiers to fixed server-side mappings with pinned hashes, rejecting path traversal and URL fragments, canonicalizing cache directories, and enforcing cache containment. Additionally, run rembg containers as non-root users with read-only root filesystems to reduce risk. No other immediate mitigations are indicated by the vendor advisory.
Description
Rembg versions prior to 2.0.82 have an unauthenticated vulnerability in the /api/remove endpoint that allows attackers to inject malicious SAM models via the extras.sam_model parameter. This enables path traversal and placement of crafted ONNX models that read arbitrary local files and encode their contents into returned PNG images. The flaw allows disclosure of any file accessible by the rembg process, including sensitive files like /etc/passwd. The issue is fixed in version 2.0.82.
References
- github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-115924 (opens in a new tab)
- github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3 (opens in a new tab)
- github.com/danielgatis/rembg (opens in a new tab)
- github.com/danielgatis/rembg/releases/tag/v2.0.82 (opens in a new tab)