CVE-2026-115924

Source
https://cve.org/CVERecord?id=CVE-2026-115924
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115924.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-115924
Aliases
Published
2026-10-26T19:22:52Z
Modified
2026-11-01T02:31:07Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L CVSS Calculator
Summary
Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-22"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115924.json"
}
References

Affected packages

Git / github.com/danielgatis/rembg

Affected ranges

Type
GIT
Repo
https://github.com/danielgatis/rembg
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "2.0.82"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "b2758c6b39bb2b02df90a03128110339476984d3"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v2.0.82",
            "range":  [
                {
                    "fixed":  "d7ac7e9ae2e94664f9d16729cc096f3c660b23a1"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v0.*
v0.0.0
v1.*
v1.0.31
v2.*
v2.0.0
v2.0.1
v2.0.10
v2.0.11
v2.0.12
v2.0.13
v2.0.14
v2.0.15
v2.0.16
v2.0.17
v2.0.18
v2.0.19
v2.0.2
v2.0.20
v2.0.21
v2.0.22
v2.0.23
v2.0.24
v2.0.25
v2.0.26
v2.0.27
v2.0.28
v2.0.29
v2.0.3
v2.0.30
v2.0.31
v2.0.32
v2.0.33
v2.0.34
v2.0.35
v2.0.36
v2.0.37
v2.0.38
v2.0.39
v2.0.4
v2.0.40
v2.0.41
v2.0.42
v2.0.43
v2.0.44
v2.0.45
v2.0.46
v2.0.47
v2.0.48
v2.0.49
v2.0.5
v2.0.50
v2.0.51
v2.0.52
v2.0.53
v2.0.54
v2.0.55
v2.0.56
v2.0.57
v2.0.58
v2.0.59
v2.0.6
v2.0.60
v2.0.61
v2.0.62
v2.0.63
v2.0.64
v2.0.65
v2.0.66
v2.0.67
v2.0.68
v2.0.69
v2.0.7
v2.0.70
v2.0.71
v2.0.72
v2.0.73
v2.0.74
v2.0.75
v2.0.76
v2.0.77
v2.0.78
v2.0.79
v2.0.8
v2.0.80
v2.0.81
v2.0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115924.json"