CVE-2025-25301 json
Rembg allows SSRF via /api/remove
published last yr. modified 4mo ago also GHSA-r5gx-c49x-h878 , PYSEC-2025-24 , EUVD-2025-6006
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi rembg 2.0.58
Is CVE-2025-25301 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | rembg | <=2.0.57 <2.0.58 |
2.0.58 |
Affected products
- danielgatis rembg
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
securitylab.github.com
/advisories/GHSL-2024-161_GHSL-2024-162_rembg/
exploit, third-party-advisory, advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2025-25301
advisory
-
github.com
/danielgatis/rembg
package
-
securitylab.github.com
/advisories/GHSL-2024-161_GHSL-2024-162_rembg
advisory
-
github.com
/advisories/GHSA-r5gx-c49x-h878
advisory
Sources
- CVE List CVE-2025-25301
- GitHub Advisory GHSA-r5gx-c49x-h878
- NVD CVE-2025-25301
- OSV PYSEC-2025-24
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.