p PatchFirst

PatchFirst · Latest vulnerabilities

rembg vulnerabilities

Vulnerability published for rembg in the last 30 days: 1. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 5

  1. CVE-2026-115924

    High · CVSS 8.6EPSS 0.39%Fix available

    Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs

    Rembg is a tool to remove images background. Prior to 2.0.82, the public /api/remove endpoint passes attacker-controlled extras.sam_model through rembg/commands/s_command.py to rembg/sessions/sam.py, where it is interpolated into SAM filenames and GitHub download URLs passed to pooch.retrieve() without a pinned hash. An unauthenticated attacker can supply a sam_model value combining path traversal with URL fragment syntax to exploit the HTTP request discarding the fragment while the local POSIX path retains it. The first request primes the attacker-selected path tree, and an identical repeated request downloads malicious ONNX encoder and deco

    • Update to 2.0.82
    Published Updated
  2. GHSA-55v6-g8pm-pw4c

    Medium · CVSS 4.3Fix available

    rembg server is vulnerable to Server-Side Request Forgery (SSRF) and a weak default CORS configuration

    # GitHub Security Lab (GHSL) Vulnerability Report, rembg: `GHSL-2024-161`, `GHSL-2024-162` The [GitHub Security Lab](https://securitylab.github.com) team has identified potential security vulnerabilities in [rembg](https://github.com/danielgatis/rembg). We are committed to working with you to help resolve these issues. In this report you will find everything you need to effectively coordinate a resolution of these issues with the GHSL team. If at any point you have concerns or questions about this process, please do not hesitate to reach out to us at `[email protected]` (please include `GHSL-2024-161` or `GHSL-2024-162` as a reference

    • Update to 2.0.75
    Published Updated
  3. CVE-2026-40086

    Medium · CVSS 5.3EPSS 0.59%Fix available

    Rembg has a Path Traversal via Custom Model Loading

    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.

    • Update to 2.0.75
    Published Updated
  4. CVE-2025-25302

    High · CVSS 8.7EPSS 0.19%Fix available

    Rembg CORS misconfiguration

    Rembg is a tool to remove images background. In Rembg 2.0.57 and earlier, the CORS middleware is setup incorrectly. All origins are reflected, which allows any website to send cross site requests to the rembg server and thus query any API. Even if authentication were to be enabled, allow_credentials is set to True, which would allow any website to send authenticated cross site requests.

    • Update to 2.0.58
    Published Updated
  5. CVE-2025-25301

    Medium · CVSS 6.9EPSS 0.53%Fix available

    Rembg allows SSRF via /api/remove

    Rembg is a tool to remove images background. In Rembg 2.0.57 and earlier, the /api/remove endpoint takes a URL query parameter that allows an image to be fetched, processed and returned. An attacker may be able to query this endpoint to view pictures hosted on the internal network of the rembg server. This issue may lead to Information Disclosure.

    • Update to 2.0.58
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →