5.3Medium

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

danielgatis rembg Published: (7 months ago)

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.

Weakness (CWE): CWE-22CWE-73

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
danielgatis rembg < 2.0.75

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* < 2.0.75