Read the docs
TI-2026-28914 Aliases CVE-2026-40086GHSA-3wqj-33cg-xc48

Rembg has a Path Traversal via Custom Model Loading

Priority MEDIUM 63CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00603 49th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed rembg (danielgatis): 2.0.75rembg (PyPI): 2.0.75

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
danielgatisrembgbefore 2.0.752.0.75Patch availableCNA
—rembg (PyPI)before 2.0.752.0.75Patch availableGHSA-3wqj-33cg-xc48
  • rembg Vendordanielgatis Affected before 2.0.75 Fixed in 2.0.75 Patch available CNA
  • rembg (PyPI) Vendor— Affected before 2.0.75 Fixed in 2.0.75 Patch available GHSA-3wqj-33cg-xc48

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*before 2.0.75Vulnerabledanielgatis
  • cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* Versions before 2.0.75 Vulnerable ·danielgatis

Remediation

  • Fix · CNA rembg (danielgatis) Fixed in 2.0.75
  • Fix · GHSA-3wqj-33cg-xc48 rembg (PyPI) Fixed in 2.0.75 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-40086
  2. 2026-10-03 Alias added: GHSA-3wqj-33cg-xc48

References

Sources