Skip to content
MediumVulnerability

CVE-2026-40086: Rembg path traversal in HTTP server model_path parameter

Identifier
CVE-2026-40086
Published
Record updated
View JSON
Affected
  • rembg < 2.0.75
Fixed in
2.0.75
  • released April 8, 2026, 2 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

CVE-2026-40086 affects Rembg, a tool for removing image backgrounds, before version 2.0.75. A path traversal flaw in the rembg HTTP server lets unauthenticated remote attackers read arbitrary files from the server's filesystem by sending a crafted request with a malicious model_path parameter. The server attempts to load the file as an ONNX model, so error messages can reveal file existence, permissions, and potentially file contents.

Mitigation

Fixed in 2.0.75.