Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. rembg
  4. ›
  5. CVE-2026-40086

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

April 10, 2026

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.

CWE IDs: CWE-22 (Path Traversal), CWE-73 (External Control of File Name or Path)


References

  • github.com/advisories/GHSA-3wqj-33cg-xc48
  • github.com/danielgatis/rembg
  • github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273
  • github.com/danielgatis/rembg/releases/tag/v2.0.75
  • github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48
  • nvd.nist.gov/vuln/detail/CVE-2026-40086

Code Behaviors & Features

Detect and mitigate CVE-2026-40086 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.75

Fixed versions

  • 2.0.75

Solution

Upgrade to version 2.0.75 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

pypi/rembg/CVE-2026-40086.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.