GitHub Advisoryadvisory · PyPI

GHSA-r5gx-c49x-h878 Rembg allows SSRF via /api/remove

MEDIUM Published 2025-03-11 Modified 2025-03-11 Official page ↗
Aliases
CVE-2025-25301
Ecosystem
PyPI
Packages
rembg
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-918
Reviewed
2025-03-11

Affected packages

• PyPI rembg: <= 2.0.57 (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • CVE-2025-25301 Rembg is a tool to remove images background. vulnerability

Weakness · CWE (1)

  • CWE-918 Server-Side Request Forgery weakness

References