CVE-2026-115924
8.6 HIGHpublic exploit availablePublished 2026-10-26 · Updated 2026-10-31
AI risk analysis
- Summary
- Rembg's /api/remove endpoint allows unauthenticated attackers to perform path traversal via the sam_model parameter, leading to arbitrary file disclosure and potential remote code execution through malicious ONNX models.
- Exploitability
- Exploitation requires no authentication or user interaction and is straightforward for an attacker with network access to the vulnerable endpoint.
- Blast radius
- Successful exploitation enables full disclosure of any file readable by the rembg process and allows arbitrary ONNX-based computation, potentially affecting all systems running the vulnerable version.
- Detection
- Look for HTTP requests to /api/remove containing sam_model parameters with URL-encoded path traversal sequences (e.g., %2e%2e%2f) or unusual file extensions like .onnx in the query string; however, no reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to Rembg version 2.0.82 or later, which patches the path traversal vulnerability in the sam_model parameter handling.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Weaknesses
CWE-22
Public exploit & PoC references
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-120324PoC
- HIGHCVE-2026-65103PoC
- CRITICALCVE-2021-48014PoC
- HIGHCVE-2024-58387PoC
- HIGHCVE-2026-103412PoC
- CRITICALCVE-2026-103882
- HIGHCVE-2026-105293PoC
- HIGHCVE-2026-108452
Related by shared AI tags and CWE weakness class. Browse the full archive.