CVE-2025-25301Danielgatis Rembg
Medium 6.9 No auth needed
Follow: this CVE · Danielgatis · Danielgatis Rembg We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Mar 3, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- 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/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
What happens
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.
What to do
- Apply the vendor's security update for Rembg.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | rembg |
≤ 2.0.57 |
no fixed version | — |
| PyPI | rembg |
< 2.0.58 |
2.0.58 |
pip install "rembg>=2.0.58" |
Per OSV / GitHub Advisories (GHSA-r5gx-c49x-h878, PYSEC-2025-24). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| danielgatis | rembg | ≤ 2.0.57 |
Official sources
References
Links published by the sources. Open them with care.
- securitylab.github.com Exploit Third Party Advisory