Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
4DescriptionGitHub Advisory
Rembg is a tool to remove images background. Prior to 2.0.75, a path traversal vulnerability in the rembg HTTP server allows unauthenticated remote attackers to read arbitrary files from the server's filesystem. By sending a crafted request with a malicious model_path parameter, an attacker can force the server to attempt loading any file as an ONNX model, revealing file existence, permissions, and potentially file contents through error messages. This vulnerability is fixed in 2.0.75.
AnalysisAI
Unauthenticated remote attackers can exploit a path traversal vulnerability in rembg's HTTP server (versions prior to 2.0.75) by sending a crafted request with a malicious model_path parameter to read arbitrary files from the server filesystem. The vulnerability allows attackers to enumerate file existence and permissions, and potentially extract file contents through verbose error messages when the server attempts to load arbitrary paths as ONNX models. This is a confirmed vulnerability with a vendor-released patch available in version 2.0.75.
Technical ContextAI
Rembg is a background removal tool that exposes an HTTP server interface. The vulnerability exists in the HTTP request handler that processes the model_path parameter without proper path validation, allowing directory traversal sequences (such as ../) to escape the intended model directory. This is a classic CWE-22 path traversal flaw. When the server attempts to open files specified via the traversal path, it may expose sensitive information through error messages that reveal file permissions, existence, and in some cases partial file contents. The vulnerability affects all versions of the danielgatis/rembg package prior to the patched release, as indicated by the CPE cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*.
RemediationAI
Vendor-released patch: Upgrade rembg to version 2.0.75 or later. This patch is available at https://github.com/danielgatis/rembg/releases/tag/v2.0.75. The fix includes proper path validation in the model_path parameter handler to prevent directory traversal attacks. Users unable to upgrade immediately should restrict network access to the rembg HTTP server to trusted IP addresses or network segments only, ensuring that the service is not directly exposed to the public internet or untrusted users. The upstream fix and detailed security advisory are available at https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48.
Rembg is a tool to remove images background. Rated high severity (CVSS 8.7), this vulnerability is remotely exploitable,
Rembg is a tool to remove images background. Rated medium severity (CVSS 6.9), this vulnerability is remotely exploitabl
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-21492
GHSA-3wqj-33cg-xc48