Advisory

PYSEC-2026-2274

Also known as: CVE-2026-40086, GHSA-3wqj-33cg-xc48

Summary

The record has no summary.

Details

Rembg is a tool to remove images background. Prior to 2.0.75, a path traversal vulnerability in the rembg HTTP server allows unauthenticated remote attackers to read arbitrary files from the server's filesystem. By sending a crafted request with a malicious model_path parameter, an attacker can force the server to attempt loading any file as an ONNX model, revealing file existence, permissions, and potentially file contents through error messages. This vulnerability is fixed in 2.0.75.

Severity

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

Dates

Published
2026-04-10 17:17 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

rembg

PyPI · All systems

Affected

  • introduced 0, fixed 2.0.75 (ecosystem)

Fixed versions

2.0.75

Fix

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

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