Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-25301 EUVD-2025-6006GHSA-r5gx-c49x-h878PYSEC-2025-24

Rembg allows SSRF via /api/remove

Published Mar 3, 2025 · Updated Mar 3, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
danielgatis rembg <= 2.0.57 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI rembg <= 2.0.57 — GHSA-r5gx-c49x-h878
PyPI rembg < 2.0.58 2.0.58 PYSEC-2025-24

References