CVE-2025-25301

Rembg allows SSRF via /api/remove

Published Mar 3, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-6006 Rembg allows SSRF via /api/remove
Github GHSA Github GHSA GHSA-r5gx-c49x-h878 Rembg allows SSRF via /api/remove
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Rembg allows SSRF via /api/remove
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 6.9, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 3, 2025, 6:27 PM
Reserved
Feb 6, 2025, 5:13 PM
Status
Analyzed
Published
Mar 3, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:00 AM