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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-03T16:36:09.633Z
- Modified: 2026-06-17T09:00:38.790Z
- Also known as: GHSA-r5gx-c49x-h878, PYSEC-2025-24
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- danielgatis rembg: <= 2.0.57; up to 2.0.57
- rembg (PyPI): up to 2.0.57; before 2.0.58

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/> (exploit, advisory, evidence, 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

- CVE List: [CVE-2025-25301](https://www.cve.org/CVERecord?id=CVE-2025-25301), CVE Terms of Use, modified 2025-03-03
- GitHub Advisory Database: [GHSA-r5gx-c49x-h878](https://github.com/advisories/GHSA-r5gx-c49x-h878), CC-BY-4.0, modified 2025-04-09
- NVD: [CVE-2025-25301](https://nvd.nist.gov/vuln/detail/CVE-2025-25301), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-24](https://osv.dev/vulnerability/PYSEC-2025-24), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2025-25301 · Whole record: https://cve.day/CVE-2025-25301.json · Rebuilt by cve.day 2026-11-25T22:58:54.920Z
