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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | rembg | no fix listed | GHSA-r5gx-c49x-h878 |
| PyPI | rembg | 2.0.58 | PYSEC-2025-24 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ x_refsource_CONFIRM