Vulnerability · Published Apr 10, 2026 · Assigned by GitHub_M

CVE-2026-40086Rembg has a Path Traversal via Custom Model Loading

Medium 5.3

In plain English

A medium-severity path traversal in rembg from danielgatis. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 51.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIrembg2.0.75GHSA-3wqj-33cg-xc48
PyPIrembg2.0.75PYSEC-2026-2274

Affected products (as reported)

VendorProductVersions
danielgatis rembg < 2.0.75

Weakness: CWE-22, CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References