{"id":"CVE-2026-79783","aliases":["BIT-rclone-2026-79783","DEBIAN-CVE-2026-79783","DHI-tysr-ucwv-5xou-64oh","GHSA-945v-v9p3-v5xw","GO-2026-6190","UBUNTU-CVE-2026-79783"],"summary":"rclone before 1.74.4 Privilege Escalation via setuid Metadata","published_at":"2026-08-05T20:03:14Z","modified_at":"2026-11-19T11:00:09.022242Z","products":[],"rating":{"severity":"low","score":3.6,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","attack_path":"local","user_interaction":true,"malicious":false,"red_hat":"Low","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Low"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0022700000554323196,"percentile":0.13658000528812408,"date":"2026-11-19T00:00:00Z"},"priority":2.6,"details":"rclone before 1.74.4 fails to mask special permission bits when applying source-supplied mode metadata in the local backend, allowing attackers to set setuid/setgid bits on attacker-controlled files. When copying with metadata preservation from an untrusted remote, attackers can plant a setuid binary that escalates privileges to root if rclone runs as root, or to the service account user otherwise.","affected_stack":[],"affected_other":[{"ecosystem":"Bitnami","package":"rclone","purl":"pkg:bitnami/rclone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"osv","source":"BIT-rclone-2026-79783","relation":"self"},{"ecosystem":"CVE","package":"rclone/rclone","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"cvelistv5","source":"CVE-2026-79783","relation":"self"},{"ecosystem":"Debian:12","package":"rclone","purl":"pkg:deb/debian/rclone?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-2","1.60.1+dfsg-3","1.60.1+dfsg-4","1.65.0+dfsg-1","1.65.0+dfsg-2","1.69.3+dfsg-1","1.69.3+dfsg-2","1.69.3+dfsg-3","1.75.2-1","1.75.2-2"],"provider":"osv","source":"DEBIAN-CVE-2026-79783","relation":"self"},{"ecosystem":"Debian:13","package":"rclone","purl":"pkg:deb/debian/rclone?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-4","1.65.0+dfsg-1","1.65.0+dfsg-2","1.69.3+dfsg-1","1.69.3+dfsg-2","1.69.3+dfsg-3","1.75.2-1","1.75.2-2"],"provider":"osv","source":"DEBIAN-CVE-2026-79783","relation":"self"},{"ecosystem":"Debian:14","package":"rclone","purl":"pkg:deb/debian/rclone?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.2-1"}]}],"versions":["1.60.1+dfsg-4","1.65.0+dfsg-1","1.65.0+dfsg-2","1.69.3+dfsg-1","1.69.3+dfsg-2","1.69.3+dfsg-3"],"fixed":["1.75.2-1"],"provider":"osv","source":"DEBIAN-CVE-2026-79783","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf","purl":"pkg:apk/dhi/telegraf","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf-dev","purl":"pkg:apk/dhi/telegraf-dev","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf-fips","purl":"pkg:apk/dhi/telegraf-fips","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf-fips-dev","purl":"pkg:apk/dhi/telegraf-fips-dev","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"osv","source":"GHSA-945v-v9p3-v5xw","relation":"self"},{"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"osv","source":"GO-2026-6190","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36-3","1.36-3ubuntu0.1","1.36-3ubuntu0.2"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-4ubuntu3","1.69.3+dfsg-3","1.69.3+dfsg-3ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.47.0+ex1-6","1.47.0+ex1-7","1.49.5-2","1.49.5-3","1.50.2-2","1.50.2-2ubuntu0.1","1.50.2-2ubuntu0.2","1.50.2-2ubuntu0.2+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.53.3-1","1.53.3-2","1.53.3-4","1.53.3-4ubuntu1","1.53.3-4ubuntu1.22.04.1","1.53.3-4ubuntu1.22.04.2","1.53.3-4ubuntu1.22.04.3","1.53.3-4ubuntu1.22.04.3+esm1","1.53.3-4ubuntu1.22.04.4","1.53.3-4ubuntu1.22.04.4+esm1","1.53.3-4ubuntu1.22.04.5","1.53.3-4ubuntu1.22.04.5+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-2build1","1.60.1+dfsg-3","1.60.1+dfsg-3ubuntu0.24.04.1","1.60.1+dfsg-3ubuntu0.24.04.2","1.60.1+dfsg-3ubuntu0.24.04.3","1.60.1+dfsg-3ubuntu0.24.04.4","1.60.1+dfsg-3ubuntu0.24.04.4+esm1","1.60.1+dfsg-3ubuntu0.24.04.5","1.60.1+dfsg-3ubuntu0.24.04.5+esm1","1.60.1+dfsg-3ubuntu0.24.04.6","1.60.1+dfsg-3ubuntu0.24.04.6+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Fresolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-4ubuntu2","1.60.1+dfsg-4ubuntu3","1.60.1+dfsg-4ubuntu3.1","1.60.1+dfsg-4ubuntu3.1+esm1","1.60.1+dfsg-4ubuntu3.2","1.60.1+dfsg-4ubuntu3.2+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Cryostat 4","cpe":"cpe:/a:redhat:cryostat:4","status":"affected","packages":["cryostat/cryostat-storage-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-79783"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/volsync-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-79783"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2266","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2266","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-07-08T22:00:00Z","modified_at":"2026-08-25T22:00:00Z","summary":"rclone: Mehrere Schwachstellen","details":"Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in rclone ausnutzen, um beliebige Dateien zu lesen und zu schreiben, sowie Informationen offenzulegen und Sicherheitsmechanismen zu umgehen.\n\nRclone ist ein Open-Source-Befehlszeilenprogramm zur Synchronisierung von Dateien und Verzeichnissen mit verschiedenen Cloud-Speicherdiensten.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-2266"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2266.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2266"},{"type":"WEB","url":"https://rclone.org/changelog/#v1-74-4-2026-07-08"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-4vr5-p2gc-h23p"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-8v25-v8p6-qf7v"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-cf44-9pgv-m4xc"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-fqj9-69pf-6pjg"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-gx4c-2hqx-cw2r"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/HYKHZJD6YUWTIIFOLIBIDK6PLTJH5DYZ/"},{"type":"WEB","url":"https://alas.aws.amazon.com/AL2/ALAS2-2026-3834.html"}]},{"provider":"cvelistv5","source_id":"CVE-2026-79783","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-79783","license":"CC-BY-4.0","published_at":"2026-08-25T15:16:11.806Z","modified_at":"2026-08-25T16:11:49.885Z","summary":"rclone before 1.74.4 Privilege Escalation via setuid Metadata","details":"rclone before 1.74.4 fails to mask special permission bits when applying source-supplied mode metadata in the local backend, allowing attackers to set setuid/setgid bits on attacker-controlled files. When copying with metadata preservation from an untrusted remote, attackers can plant a setuid binary that escalates privileges to root if rclone runs as root, or to the service account user otherwise.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","source":"CVE-2026-79783"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"CVE-2026-79783"}],"affected":[{"ecosystem":"CVE","package":"rclone/rclone","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"cvelistv5","source":"CVE-2026-79783","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/rclone-before-privilege-escalation-via-setuid-metadata"}]},{"provider":"osv","source_id":"BIT-rclone-2026-79783","relation":"self","url":"https://osv.dev/vulnerability/BIT-rclone-2026-79783","license":"Apache-2.0","published_at":"2026-09-25T12:30:16.445Z","modified_at":"2026-09-25T14:25:48.31131Z","summary":"rclone before 1.74.4 Privilege Escalation via setuid Metadata","details":"rclone before 1.74.4 fails to mask special permission bits when applying source-supplied mode metadata in the local backend, allowing attackers to set setuid/setgid bits on attacker-controlled files. When copying with metadata preservation from an untrusted remote, attackers can plant a setuid binary that escalates privileges to root if rclone runs as root, or to the service account user otherwise.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"BIT-rclone-2026-79783"}],"affected":[{"ecosystem":"Bitnami","package":"rclone","purl":"pkg:bitnami/rclone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"osv","source":"BIT-rclone-2026-79783","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79783"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/rclone-before-privilege-escalation-via-setuid-metadata"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-79783","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-79783","published_at":"2026-08-25T16:17:30.383Z","modified_at":"2026-11-19T11:00:09.022242Z","details":"rclone before 1.74.4 fails to mask special permission bits when applying source-supplied mode metadata in the local backend, allowing attackers to set setuid/setgid bits on attacker-controlled files. When copying with metadata preservation from an untrusted remote, attackers can plant a setuid binary that escalates privileges to root if rclone runs as root, or to the service account user otherwise.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"DEBIAN-CVE-2026-79783"}],"affected":[{"ecosystem":"Debian:12","package":"rclone","purl":"pkg:deb/debian/rclone?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-2","1.60.1+dfsg-3","1.60.1+dfsg-4","1.65.0+dfsg-1","1.65.0+dfsg-2","1.69.3+dfsg-1","1.69.3+dfsg-2","1.69.3+dfsg-3","1.75.2-1","1.75.2-2"],"provider":"osv","source":"DEBIAN-CVE-2026-79783","relation":"self"},{"ecosystem":"Debian:13","package":"rclone","purl":"pkg:deb/debian/rclone?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-4","1.65.0+dfsg-1","1.65.0+dfsg-2","1.69.3+dfsg-1","1.69.3+dfsg-2","1.69.3+dfsg-3","1.75.2-1","1.75.2-2"],"provider":"osv","source":"DEBIAN-CVE-2026-79783","relation":"self"},{"ecosystem":"Debian:14","package":"rclone","purl":"pkg:deb/debian/rclone?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.2-1"}]}],"versions":["1.60.1+dfsg-4","1.65.0+dfsg-1","1.65.0+dfsg-2","1.69.3+dfsg-1","1.69.3+dfsg-2","1.69.3+dfsg-3"],"fixed":["1.75.2-1"],"provider":"osv","source":"DEBIAN-CVE-2026-79783","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-79783"}]},{"provider":"osv","source_id":"DHI-tysr-ucwv-5xou-64oh","relation":"self","url":"https://osv.dev/vulnerability/DHI-tysr-ucwv-5xou-64oh","license":"Apache-2.0","published_at":"2026-11-13T19:15:46Z","modified_at":"2026-11-16T02:36:20.550964Z","summary":"### Summary","details":"### Summary\nWhen writing an object with metadata, the local backend applies the source-supplied `mode`, `uid`, and `gid` verbatim: it parses `mode` as an octal integer and passes it straight into `os.Chmod(o.path, os.FileMode(umode))`, and passes `uid`/`gid` straight into `os.Chown`. The value is never masked to permission bits, so any value with Go's `ModeSetuid` (1<<23) or `ModeSetgid` (1<<22) bit set causes the setuid/setgid bit to be applied. Because both the file content and its metadata come from the (attacker-controlled) source remote, an attacker stores a binary of their choosing with `mode = 40000755` (and `uid = 0`); when the victim runs `rclone copy -M <remote>: /dest`, rclone writes the attacker's binary and makes it setuid. If the victim runs rclone as root (typical for system backup/restore), the `uid=0` chown plus setuid produces a root-owned setuid binary with attacker content — any local user then escalates to root. When rclone runs as a non-root service user, the planted setuid binary is owned by that user, giving any local user that user's privileges (lateral escalation / persistent backdoor).\n\n### Details\n`backend/local/metadata.go`, `writeMetadataToFile()`:\n```go\nuid, hasUID := o.parseMetadataInt(m, \"uid\", 10)\ngid, hasGID := o.parseMetadataInt(m, \"gid\", 10)\nif hasUID {\n    ...\n    err = os.Chown(o.path, uid, gid)        // source-controlled owner, no same-uid guard\n}\nmode, hasMode := o.parseMetadataInt(m, \"mode\", 8)\nif hasMode && mode >= 0 {\n    umode := uint(mode)\n    if umode <= math.MaxUint32 {\n        err = os.Chmod(o.path, os.FileMode(umode))   // <-- raw value; ModeSetuid/ModeSetgid NOT masked off\n    }\n}\n```\n`os.Chmod`/`os.FileMode` honor `ModeSetuid`/`ModeSetgid`/`ModeSticky`. There is no `&^ (os.ModeSetuid|os.ModeSetgid)` mask and no check that the source is trusted, so an attacker-chosen `mode` string sets those bits on the freshly written, attacker-controlled file. (Note: a legitimate local source reports `mode` in unix `st_mode` layout e.g. `0106755`, whose bit 1<<23 is unset, so honest copies happen to drop setuid — but the attacker supplies the Go-`FileMode` layout `40000755` directly, which sets it.)\n\n### PoC\n1) Get the official stable binary:\n```\ncurl -fsSLO https://downloads.rclone.org/v1.74.3/rclone-v1.74.3-linux-amd64.zip\nunzip -j rclone-v1.74.3-linux-amd64.zip '*/rclone' -d .      # ./rclone -> v1.74.3\n```\n2) Create a payload (the attacker-controlled binary content) and copy it with the malicious `mode` metadata:\n```\nmkdir -p msrc mdst && cp /bin/true msrc/payload\n./rclone copy -M --metadata-set mode=40000755 msrc mdst       # 40000755 = Go FileMode setuid|0755\n```\n3) Observe — the destination file is now setuid:\n```\nstat -c '%A %a' mdst/payload\n-rwsr-xr-x 4755                                               # 's' = setuid bit SET on attacker binary\n```\nVariants: `mode=20000755` → setgid (`-rwxr-sr-x`); `mode=60000755` → both (`-rwsr-sr-x`). With rclone run as root and the source object also carrying `uid=0`/`gid=0`, the file is chown'd root:root, yielding a root-owned setuid binary executable by any local user.\n\n\n### Impact\nA victim performing a metadata-preserving copy/restore (`-M`) from an untrusted or compromised remote installs an attacker-chosen executable with the setuid/setgid bit set. Run as root (system backup/restore, the common case for `--metadata`), this is a root-owned setuid root backdoor executable by any local user → local privilege escalation to root. Run as a non-root user, it is a setuid backdoor for that service account. The companion `uid`/`gid` application lets a root-run transfer also reassign ownership of written files arbitrarily.\n\n### Remediation\nMask special bits before applying mode from metadata — `os.Chmod(o.path, os.FileMode(umode).Perm())` (or `umode & 0o777`) — and do not honor setuid/setgid/sticky from source metadata; gate `uid`/`gid`/setuid application behind an explicit opt-in (e.g. `--local-metadata-set-ownership`) that is off by default, and document that `-M` from untrusted remotes must not restore privileged bits. Regression test: copying an object with `mode=40000755`/`uid=0` must produce a non-setuid, caller-owned file unless the opt-in is set.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"DHI-tysr-ucwv-5xou-64oh"}],"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf","purl":"pkg:apk/dhi/telegraf","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf-dev","purl":"pkg:apk/dhi/telegraf-dev","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf-fips","purl":"pkg:apk/dhi/telegraf-fips","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"telegraf-fips-dev","purl":"pkg:apk/dhi/telegraf-fips-dev","versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2"],"provider":"osv","source":"DHI-tysr-ucwv-5xou-64oh","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-tysr-ucwv-5xou-64oh"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-945v-v9p3-v5xw"},{"type":"ADVISORY","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"FIX","url":"https://github.com/rclone/rclone/commit/e58f09739a35774ca82b5211d2377ac0f2051500"},{"type":"WEB","url":"https://github.com/rclone/rclone/releases/tag/v1.74.4"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2026-6190"}]},{"provider":"osv","source_id":"GHSA-945v-v9p3-v5xw","relation":"self","url":"https://osv.dev/vulnerability/GHSA-945v-v9p3-v5xw","license":"CC-BY-4.0","published_at":"2026-08-05T20:03:14Z","modified_at":"2026-09-25T14:25:48.31131Z","summary":"rclone local `--metadata` applies attacker-controlled mode/uid - setuid binary planted from an untrusted remote","details":"### Summary\nWhen writing an object with metadata, the local backend applies the source-supplied `mode`, `uid`, and `gid` verbatim: it parses `mode` as an octal integer and passes it straight into `os.Chmod(o.path, os.FileMode(umode))`, and passes `uid`/`gid` straight into `os.Chown`. The value is never masked to permission bits, so any value with Go's `ModeSetuid` (1<<23) or `ModeSetgid` (1<<22) bit set causes the setuid/setgid bit to be applied. Because both the file content and its metadata come from the (attacker-controlled) source remote, an attacker stores a binary of their choosing with `mode = 40000755` (and `uid = 0`); when the victim runs `rclone copy -M <remote>: /dest`, rclone writes the attacker's binary and makes it setuid. If the victim runs rclone as root (typical for system backup/restore), the `uid=0` chown plus setuid produces a root-owned setuid binary with attacker content — any local user then escalates to root. When rclone runs as a non-root service user, the planted setuid binary is owned by that user, giving any local user that user's privileges (lateral escalation / persistent backdoor).\n\n### Details\n`backend/local/metadata.go`, `writeMetadataToFile()`:\n```go\nuid, hasUID := o.parseMetadataInt(m, \"uid\", 10)\ngid, hasGID := o.parseMetadataInt(m, \"gid\", 10)\nif hasUID {\n    ...\n    err = os.Chown(o.path, uid, gid)        // source-controlled owner, no same-uid guard\n}\nmode, hasMode := o.parseMetadataInt(m, \"mode\", 8)\nif hasMode && mode >= 0 {\n    umode := uint(mode)\n    if umode <= math.MaxUint32 {\n        err = os.Chmod(o.path, os.FileMode(umode))   // <-- raw value; ModeSetuid/ModeSetgid NOT masked off\n    }\n}\n```\n`os.Chmod`/`os.FileMode` honor `ModeSetuid`/`ModeSetgid`/`ModeSticky`. There is no `&^ (os.ModeSetuid|os.ModeSetgid)` mask and no check that the source is trusted, so an attacker-chosen `mode` string sets those bits on the freshly written, attacker-controlled file. (Note: a legitimate local source reports `mode` in unix `st_mode` layout e.g. `0106755`, whose bit 1<<23 is unset, so honest copies happen to drop setuid — but the attacker supplies the Go-`FileMode` layout `40000755` directly, which sets it.)\n\n### PoC\n1) Get the official stable binary:\n```\ncurl -fsSLO https://downloads.rclone.org/v1.74.3/rclone-v1.74.3-linux-amd64.zip\nunzip -j rclone-v1.74.3-linux-amd64.zip '*/rclone' -d .      # ./rclone -> v1.74.3\n```\n2) Create a payload (the attacker-controlled binary content) and copy it with the malicious `mode` metadata:\n```\nmkdir -p msrc mdst && cp /bin/true msrc/payload\n./rclone copy -M --metadata-set mode=40000755 msrc mdst       # 40000755 = Go FileMode setuid|0755\n```\n3) Observe — the destination file is now setuid:\n```\nstat -c '%A %a' mdst/payload\n-rwsr-xr-x 4755                                               # 's' = setuid bit SET on attacker binary\n```\nVariants: `mode=20000755` → setgid (`-rwxr-sr-x`); `mode=60000755` → both (`-rwsr-sr-x`). With rclone run as root and the source object also carrying `uid=0`/`gid=0`, the file is chown'd root:root, yielding a root-owned setuid binary executable by any local user.\n\n\n### Impact\nA victim performing a metadata-preserving copy/restore (`-M`) from an untrusted or compromised remote installs an attacker-chosen executable with the setuid/setgid bit set. Run as root (system backup/restore, the common case for `--metadata`), this is a root-owned setuid root backdoor executable by any local user → local privilege escalation to root. Run as a non-root user, it is a setuid backdoor for that service account. The companion `uid`/`gid` application lets a root-run transfer also reassign ownership of written files arbitrarily.\n\n### Remediation\nMask special bits before applying mode from metadata — `os.Chmod(o.path, os.FileMode(umode).Perm())` (or `umode & 0o777`) — and do not honor setuid/setgid/sticky from source metadata; gate `uid`/`gid`/setuid application behind an explicit opt-in (e.g. `--local-metadata-set-ownership`) that is off by default, and document that `-M` from untrusted remotes must not restore privileged bits. Regression test: copying an object with `mode=40000755`/`uid=0` must produce a non-setuid, caller-owned file unless the opt-in is set.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"GHSA-945v-v9p3-v5xw"}],"affected":[{"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"osv","source":"GHSA-945v-v9p3-v5xw","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"WEB","url":"https://github.com/rclone/rclone/commit/e58f09739a35774ca82b5211d2377ac0f2051500"},{"type":"PACKAGE","url":"https://github.com/rclone/rclone"},{"type":"WEB","url":"https://github.com/rclone/rclone/releases/tag/v1.74.4"}]},{"provider":"osv","source_id":"GO-2026-6190","relation":"self","url":"https://osv.dev/vulnerability/GO-2026-6190","license":"CC-BY-4.0","published_at":"2026-08-18T16:38:10Z","modified_at":"2026-09-25T14:25:48.31131Z","summary":"Unsafe file permission restoration from metadata in github.com/rclone/rclone","details":"Unsafe file permission restoration from metadata in github.com/rclone/rclone","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.74.4"}]}],"fixed":["1.74.4"],"provider":"osv","source":"GO-2026-6190","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"FIX","url":"https://github.com/rclone/rclone/commit/e58f09739a35774ca82b5211d2377ac0f2051500"},{"type":"WEB","url":"https://github.com/rclone/rclone/releases/tag/v1.74.4"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-79783","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-79783","license":"CC-BY-SA-4.0","published_at":"2026-08-25T16:17:00Z","modified_at":"2026-10-17T13:01:10.024813Z","details":"rclone before 1.74.4 fails to mask special permission bits when applying source-supplied mode metadata in the local backend, allowing attackers to set setuid/setgid bits on attacker-controlled files. When copying with metadata preservation from an untrusted remote, attackers can plant a setuid binary that escalates privileges to root if rclone runs as root, or to the service account user otherwise.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"UBUNTU-CVE-2026-79783"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","source":"UBUNTU-CVE-2026-79783"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-79783"}],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36-3","1.36-3ubuntu0.1","1.36-3ubuntu0.2"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-4ubuntu3","1.69.3+dfsg-3","1.69.3+dfsg-3ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.47.0+ex1-6","1.47.0+ex1-7","1.49.5-2","1.49.5-3","1.50.2-2","1.50.2-2ubuntu0.1","1.50.2-2ubuntu0.2","1.50.2-2ubuntu0.2+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.53.3-1","1.53.3-2","1.53.3-4","1.53.3-4ubuntu1","1.53.3-4ubuntu1.22.04.1","1.53.3-4ubuntu1.22.04.2","1.53.3-4ubuntu1.22.04.3","1.53.3-4ubuntu1.22.04.3+esm1","1.53.3-4ubuntu1.22.04.4","1.53.3-4ubuntu1.22.04.4+esm1","1.53.3-4ubuntu1.22.04.5","1.53.3-4ubuntu1.22.04.5+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-2build1","1.60.1+dfsg-3","1.60.1+dfsg-3ubuntu0.24.04.1","1.60.1+dfsg-3ubuntu0.24.04.2","1.60.1+dfsg-3ubuntu0.24.04.3","1.60.1+dfsg-3ubuntu0.24.04.4","1.60.1+dfsg-3ubuntu0.24.04.4+esm1","1.60.1+dfsg-3ubuntu0.24.04.5","1.60.1+dfsg-3ubuntu0.24.04.5+esm1","1.60.1+dfsg-3ubuntu0.24.04.6","1.60.1+dfsg-3ubuntu0.24.04.6+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"rclone","purl":"pkg:deb/ubuntu/rclone?arch=source&distro=esm-apps%2Fresolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1+dfsg-4ubuntu2","1.60.1+dfsg-4ubuntu3","1.60.1+dfsg-4ubuntu3.1","1.60.1+dfsg-4ubuntu3.1+esm1","1.60.1+dfsg-4ubuntu3.2","1.60.1+dfsg-4ubuntu3.2+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-79783","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-79783"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-79783"},{"type":"REPORT","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"}]},{"provider":"redhat-vex","source_id":"CVE-2026-79783","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-79783","license":"CC-BY-4.0","published_at":"2026-08-25T15:16:11.806Z","modified_at":"2026-08-31T12:17:07.696377Z","summary":"github.com/rclone/rclone: rclone: Privilege Escalation via setuid/setgid metadata","details":"A flaw was found in rclone. This vulnerability allows a remote attacker to escalate privileges by manipulating file metadata. When copying files with metadata preservation from an untrusted source, rclone fails to properly mask special permission bits. This oversight enables an attacker to set setuid or setgid bits on their controlled files, potentially leading to privilege escalation to root or the service account user if rclone is running with elevated permissions.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"CVE-2026-79783"},{"type":"Red Hat","score":"Low","source":"CVE-2026-79783"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Cryostat 4","cpe":"cpe:/a:redhat:cryostat:4","status":"affected","packages":["cryostat/cryostat-storage-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-79783"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/volsync-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-79783"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-79783.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-79783"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2523574"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-79783"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79783"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/rclone-before-privilege-escalation-via-setuid-metadata"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/rclone/rclone/security/advisories/GHSA-945v-v9p3-v5xw"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/rclone-before-privilege-escalation-via-setuid-metadata"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79783"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-79783"},{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-tysr-ucwv-5xou-64oh"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-945v-v9p3-v5xw"},{"type":"FIX","url":"https://github.com/rclone/rclone/commit/e58f09739a35774ca82b5211d2377ac0f2051500"},{"type":"WEB","url":"https://github.com/rclone/rclone/releases/tag/v1.74.4"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2026-6190"},{"type":"PACKAGE","url":"https://github.com/rclone/rclone"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-79783"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-79783"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-79783.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-79783"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2523574"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2266","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2266","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-08-25T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-79783","url":"https://www.cve.org/CVERecord?id=CVE-2026-79783","license":"CC-BY-4.0","modified_at":"2026-08-25T16:11:49.885Z","relation":"self"},{"provider":"osv","source_id":"BIT-rclone-2026-79783","url":"https://osv.dev/vulnerability/BIT-rclone-2026-79783","license":"Apache-2.0","modified_at":"2026-09-25T14:25:48.31131Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-79783","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-79783","modified_at":"2026-11-19T11:00:09.022242Z","relation":"self"},{"provider":"osv","source_id":"DHI-tysr-ucwv-5xou-64oh","url":"https://osv.dev/vulnerability/DHI-tysr-ucwv-5xou-64oh","license":"Apache-2.0","modified_at":"2026-11-16T02:36:20.550964Z","relation":"self"},{"provider":"osv","source_id":"GHSA-945v-v9p3-v5xw","url":"https://osv.dev/vulnerability/GHSA-945v-v9p3-v5xw","license":"CC-BY-4.0","modified_at":"2026-09-25T14:25:48.31131Z","relation":"self"},{"provider":"osv","source_id":"GO-2026-6190","url":"https://osv.dev/vulnerability/GO-2026-6190","license":"CC-BY-4.0","modified_at":"2026-09-25T14:25:48.31131Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-79783","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-79783","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T13:01:10.024813Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-79783","url":"https://access.redhat.com/security/cve/CVE-2026-79783","license":"CC-BY-4.0","modified_at":"2026-08-31T12:17:07.696377Z","relation":"self"}]}
