p PatchFirst

CVE-2026-40086

CVE-2026-40086 · Rembg has a Path Traversal via Custom Model Loading

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.3 · Medium · EPSS 0.6% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • rembg

    Versions
    • < 2.0.75: Affected

    No fix published

  • rembg PyPI

    Versions
    • 2.0.28
    • 2.0.29
    • 2.0.30
    • 2.0.31
    • 2.0.32
    • 2.0.33
    • 2.0.34
    • 2.0.35
    • 2.0.36
    • 2.0.37
    • 2.0.38
    • 2.0.39
    • 2.0.40
    • 2.0.41
    • 2.0.43
    • 2.0.44
    • 2.0.45
    • 2.0.46
    • 2.0.47
    • 2.0.48
    • 2.0.49
    • 2.0.50
    • 2.0.51
    • 2.0.52
    • 2.0.53
    • 2.0.54
    • 2.0.55
    • 2.0.56
    • 2.0.57
    • 2.0.58
    • 2.0.59
    • 2.0.60
    • 2.0.61
    • 2.0.62
    • 2.0.63
    • 2.0.64
    • 2.0.65
    • 2.0.66
    • 2.0.67
    • 2.0.68
    • 2.0.69
    • 2.0.70
    • 2.0.71
    • 2.0.72
    • 2.0.73
    • 2.0.74
    Affected ranges
    • ECOSYSTEM: < 2.0.75

    Update to 2.0.75

Original sources

Check your server →