Rembg allows SSRF via /api/remove
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| danielgatis | rembg | up to 2.0.57 | — | No fix listed | CNA |
| — | rembg (PyPI) | up to 2.0.57 | — | No fix listed | GHSA-r5gx-c49x-h878 |
- rembg Vendordanielgatis Affected up to 2.0.57 Fixed in — No fix listed CNA
- rembg (PyPI) Vendor— Affected up to 2.0.57 Fixed in — No fix listed GHSA-r5gx-c49x-h878
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* | up to 2.0.57 | Vulnerable | danielgatis |
- cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* Versions up to 2.0.57 Vulnerable ·danielgatis
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25301
- 2026-10-03 Alias added: GHSA-r5gx-c49x-h878
References
More danielgatis Rembg vulnerabilities
- TI-2026-28914 Rembg has a Path Traversal via Custom Model Loading CVSS 3.1MEDIUM 5.3
- TI-2025-18956 Rembg CORS misconfiguration CVSS 4.0HIGH 8.7
Sources
- CVE-2025-25301 · CVE Program
- CVE-2025-25301 · NVD
- FIRST EPSS
- GHSA-r5gx-c49x-h878 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences