CVE-2026-40086

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductDanielgatis Rembg
PublishedApr 10, 2026
First seenApr 10, 2026

How to fix

Update
  • danielgatis rembg2.0.75 or later
  • rembg2.0.75 or later

Affected products

ProductAffected versionsFixed in
danielgatis rembgv < 2.0.752.0.75
rembgPyPIv < 2.0.752.0.75

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.