CVE-2026-40086 MEDIUM

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

Vendor Danielgatis
Product rembg
Weakness CWE-22 · Path traversal
Published April 10, 2026
Last update April 10, 2026

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality Low
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 10, 2026 CVE published
April 10, 2026 Record updated

Related vulnerabilities

04Related CVE