Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. rembg
  4. ›
  5. CVE-2025-25301

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

March 11, 2025

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.

References

  • github.com/advisories/GHSA-r5gx-c49x-h878
  • github.com/danielgatis/rembg
  • nvd.nist.gov/vuln/detail/CVE-2025-25301
  • securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg

Code Behaviors & Features

Detect and mitigate CVE-2025-25301 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.0.57

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/rembg/CVE-2025-25301.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:48 +0000.