CVE-2026-40086CWE-22CWE-73

Rembg has a Path Traversal via Custom Model Loading

Medium · published April 10, 2026

CVSS v3.1
5.3
EPSS
1%
Percentile
47.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00594 · 47.7th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-73 · External Control of File Name or Path
Published
2026-04-10T16:16Z
EPSS history
Timeline
  • 10 APR 16:16Z
    Rembg has a Path Traversal via Custom Model Loading
    cvelistv5