CVE-2026-115924
CVE-2026-115924 · Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
Rembg is a tool to remove images background. Prior to 2.0.82, the public /api/remove endpoint passes attacker-controlled extras.sam_model through rembg/commands/s_command.py to rembg/sessions/sam.py, where it is interpolated into SAM filenames and GitHub download URLs passed to pooch.retrieve() without a pinned hash. An unauthenticated attacker can supply a sam_model value combining path traversal with URL fragment syntax to exploit the HTTP request discarding the fragment while the local POSIX path retains it. The first request primes the attacker-selected path tree, and an identical repeated request downloads malicious ONNX encoder and decoder files beside a readable target file. The graphs can load the target through ONNX external data and encode its bytes into the returned PNG mask, disclosing complete files accessible to the rembg process and allowing arbitrary ONNX computation. This issue is fixed in version 2.0.82.
CVSS 8.6 · Élevée · EPSS 0,4% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: python
Produits et versions concernés
rembg
- Versions du logiciel
- < 2.0.82: Concernée
Aucun correctif publié
rembg PyPI
- Versions du logiciel
- 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
- 2.0.75
- 2.0.76
- 2.0.77
- 2.0.78
- 2.0.79
- 2.0.80
- 2.0.81
- Plages de versions concernées
- ECOSYSTEM: < 2.0.82
Mettez à jour vers 2.0.82