6.9medium
Rembg allows SSRF via /api/remove
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r5gx-c49x-h878PYSEC-2025-24
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
| Product or package | Versions | Reported by |
|---|---|---|
| danielgatis rembg | <= 2.0.57, up to 2.0.57 | CVE List, NVD |
| rembg (PyPI) | up to 2.0.57, before 2.0.58 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | 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 |
| GitHub | 7.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Rembg es una herramienta para eliminar el fondo de las imágenes. En Rembg 2.0.57 y versiones anteriores, el punto de conexión /api/remove toma un parámetro de consulta de URL que permite obtener, procesar y devolver una imagen. Un atacante podría consultar este endpoint para ver imágenes alojadas en la red interna del servidor de Rembg. Este problema puede provocar una divulgación de información.
References
| https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ | advisory, evidence, exploit, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-25301 | advisory | |
| https://github.com/danielgatis/rembg | package | |
| https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg | advisory | |
| https://github.com/advisories/GHSA-r5gx-c49x-h878 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-25301 changed 2025-03-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r5gx-c49x-h878 changed 2025-04-09 | CC-BY-4.0 |
| NVD | CVE-2025-25301 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2025-24 changed 2026-06-10 | CC-BY-4.0 |