Advisory

PYSEC-2025-24

Also known as: CVE-2025-25301, GHSA-r5gx-c49x-h878

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2025-03-03 17:15 UTC
Modified
2026-06-10 17:02 UTC

Affected packages and fixes

rembg

PyPI · All systems

Affected

  • introduced 0, fixed 2.0.58 (ecosystem)

Fixed versions

2.0.58

Fix

  • Fixed version 2.0.58
    pip install --upgrade rembg==2.0.58

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences