CVE-2025-25301
MEDIUM 6.9CVSS 4.0Rembg allows SSRF via /api/remove
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.
- Published
- 3 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-r5gx-c49x-h878PYSEC-2025-24
- Sources
- NVDJSONOSV GHSA-r5gx-c49x-h878JSONOSV PYSEC-2025-24JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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 |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | danielgatis | rembgcpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* |
<= 2.0.57 | |
| OSV | PyPI | rembg | <= 2.0.57 | |
| OSV | PyPI | rembg | < 2.0.58 | 2.0.58 |
References
- https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ · Exploit, Third Party Advisory, ADVISORY, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2025-25301 · ADVISORY
- https://github.com/danielgatis/rembg · PACKAGE
- https://github.com/advisories/GHSA-r5gx-c49x-h878 · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Mar 2025)