Vulnerability · Published Mar 3, 2025 · Assigned by GitHub_M

CVE-2025-25301Rembg allows SSRF via /api/remove

Medium 6.9

In plain English

A medium-severity server-side request forgery in rembg from danielgatis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.5%top 55.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIrembgno fix listedGHSA-r5gx-c49x-h878
PyPIrembg2.0.58PYSEC-2025-24

Affected products (as reported)

VendorProductVersions
danielgatis rembg <= 2.0.57

Weakness: CWE-918 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

References