CVE-2026-115924 Details
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.
A vulnerability in Rembg, a tool for removing image backgrounds, allows for arbitrary file disclosure through the public /api/remove endpoint. Prior to version 2.0.82, the endpoint accepted attacker-controlled data that was improperly sanitized, enabling path traversal attacks. An unauthenticated attacker could exploit this by injecting specific values that manipulated file paths and URLs, leading to the download of malicious ONNX models. These models could then be used to access and encode the contents of arbitrary files into a PNG mask, which Rembg would return, effectively disclosing the files' contents. This vulnerability affects Rembg versions through 2.0.81 and has been patched in 2.0.82.
Users are advised to update to Rembg version 2.0.82 or later, and to ensure that the application runs as a non-root user with a read-only root filesystem.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 26, 2026CISA-ADP
Assessed Oct 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg | CISA-ADP | AdvisoryRemedyVendor |
| https://github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3 | [email protected] | Source CodeVendor |
| https://github.com/danielgatis/rembg/releases/tag/v2.0.82 | [email protected] | Release NotesVendor |
| https://github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rembg | 2.0.81 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 31, 2026 | CVE Modified | CISA-ADP |
| Oct 26, 2026 | New CVE Received | [email protected] |
Volerion