{"id":"CVE-2026-79780","aliases":["CVE-2026-79780","GHSA-8mxv-9xhp-86h4","BIT-RCLONE-2026-79780","GO-2026-6188"],"related":[],"kind":"vulnerability","state":"published","title":"rclone before v1.75.0 Credential Exposure via S3 Redirect","summary":"rclone before v1.75.0 fails to sanitize IBM IAM bearer tokens and SSE-C encryption keys during S3 redirect callbacks, allowing credentials to be preserved across scheme or host changes. Attackers observing network traffic from a trusted endpoint can capture reusable IBM IAM tokens on same-host HTTPS-to-HTTP downgrades or SSE-C keys on cross-origin redirects to access protected S3 objects.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rclone before v1.75.0 fails to sanitize IBM IAM bearer tokens and SSE-C encryption keys during S3 redirect callbacks, allowing credentials to be preserved across scheme or host changes. Attackers observing network traffic from a trusted endpoint can capture reusable IBM IAM tokens on same-host HTTPS-to-HTTP downgrades or SSE-C keys on cross-origin redirects to access protected S3 objects.","source":"cvelist"},{"lang":"en","text":"## 1. Summary\n\nThe S3 redirect callback strips `X-Amz-Security-Token` when a redirect changes scheme or host, but it does not strip IBM IAM bearer authorization or customer-provided encryption keys. Two independently validated paths remain:\n\n- a same-host HTTPS-to-HTTP redirect preserves `Authorization: Bearer ...` and exposes a reusable IBM IAM token to the plaintext network path;\n- a cross-origin redirect preserves SSE-C and copy-source SSE-C key headers.\n\nThe High rating is driven by the reusable IBM IAM bearer token. The SSE-C cross-origin disclosure is a secondary confidentiality issue. The meaningful threat is a trusted endpoint, gateway, or accelerator that emits an unsafe redirect, followed by an adjacent/on-path observer; describing the originally configured endpoint itself as the attacker would be weak because that endpoint already receives the request secrets.\n\n## 2. Affected Assets & Attack Surface\n\n- S3 redirect policy: `backend/s3/s3.go:1345-1379`\n- IBM IAM signer: `backend/s3/ibm_signer.go:28-40`\n- SSE-C key preparation: `backend/s3/s3.go:1821-1837`\n- Affected operations: requests carrying IBM IAM authorization, SSE-C keys, or copy-source SSE-C keys\n- Confirmed affected version: `<= v1.74.0-240-ga0c09f138`\n\n## 3. Technical Root Cause Analysis\n\n`s3CheckRedirect` applies a one-header denylist:\n\n```go\nif s3RedirectCrossesHost(req, via) {\n    req.Header.Del(\"X-Amz-Security-Token\")\n}\n```\n\nGo removes `Authorization` on some hostname changes, but preserves it for a same-host redirect and does not treat a scheme downgrade as sufficient reason to remove it. Go also has no generic knowledge that the SSE-C headers contain raw encryption keys. The rclone callback recognizes the STS token but not these additional origin-bound secrets.\n\n## 4. Proof-of-Concept & Evidence\n\nUsing the actual redirect callback:\n\n1. An HTTPS endpoint redirected to HTTP on the same hostname.\n2. The plaintext destination received the planted IBM bearer token and SSE-C headers.\n3. A separate redirect to an unrelated hostname caused Go to remove `Authorization`, but the destination still received both SSE-C key headers.\n4. In both cases, rclone removed the planted STS token, proving that the S3-specific callback executed while omitting the other secret classes.\n\nThe related [GHSA-gx4c-2hqx-cw2r](https://github.com/rclone/rclone/security/advisories/GHSA-gx4c-2hqx-cw2r) covers the STS downgrade path and confirms that rclone treats scheme changes as a credential boundary. It does not cover the IBM bearer or SSE-C variants retained here.\n\n## 5. Impact Assessment\n\nA captured IBM bearer token can authorize reads, writes, and deletes within its IAM scope. A disclosed SSE-C key can expose corresponding ciphertext available to the recipient; copy-source keys can expose protected source objects. The exact impact is limited by token policy and the attacker's access to encrypted objects.\n\n## 6. Remediation Guidance\n\n- Reject every HTTPS-to-HTTP redirect before replay.\n- Do not automatically follow secret-bearing cross-origin redirects.\n- On any scheme, host, or effective-port change, remove all authorization, cookies, session tokens, SSE-C fields, copy-source SSE-C fields, and provider-specific credentials.\n- Where redirects are required, allowlist exact destinations and reconstruct/re-sign a new request.\n- Add redirect tests for every secret header class and for scheme, hostname, subdomain, and port changes.","format":"markdown","source":"ghsa"},{"lang":"en","text":"S3 redirect sanitization omits sensitive headers in github.com/rclone/rclone","format":"markdown","source":"go"}],"published":"2026-08-05T20:27:50.000Z","modified":"2026-09-25T14:25:35.724Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-200","CWE-319","CWE-522"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.75.0","status":"affected"},{"type":"semver","version":"1.75.0","status":"unaffected"}],"vendor":"rclone","product":"rclone","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.75.0"}],"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.75.0"}],"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.75.0"}],"ecosystem":"Bitnami","package":"rclone","purl":"pkg:bitnami/rclone","source":"bitnami"}],"references":[{"url":"https://github.com/rclone/rclone/security/advisories/GHSA-8mxv-9xhp-86h4","tags":["advisory","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://www.vulncheck.com/advisories/rclone-before-credential-exposure-via-s3-redirect","tags":["third-party-advisory","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/rclone/rclone/commit/7543a7a87884aca957590b20b0714078d51af87b","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/rclone/rclone/commit/9328763d1b73db71e97c0332b19e3747abeb9191","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/rclone/rclone","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rclone/rclone/releases/tag/v1.75.0","tags":["web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79780","tags":["web"],"sources":["bitnami"]}],"credits":["cyberlanc3r","ncw","GitHub: cyberlanc3r"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-25T16:06:59.260Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-79780","url":"https://www.cve.org/CVERecord?id=CVE-2026-79780","licence":"CVE Terms of Use","modified":"2026-08-25T16:07:21.266Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8mxv-9xhp-86h4","url":"https://github.com/advisories/GHSA-8mxv-9xhp-86h4","licence":"CC-BY-4.0","modified":"2026-09-25T14:25:35.724Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6188","url":"https://pkg.go.dev/vuln/GO-2026-6188","licence":"CC-BY-4.0","modified":"2026-09-25T14:25:35.724Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-79780","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79780","licence":"Public domain","modified":"2026-09-10T20:46:19.780Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RCLONE-2026-79780","url":"https://osv.dev/vulnerability/BIT-RCLONE-2026-79780","licence":"Apache-2.0","modified":"2026-09-25T14:25:35.724Z"}],"updatedAt":"2026-11-25T22:59:35.180Z","epss":{"score":0.00095,"percentile":0.00691,"date":"2026-12-02T12:00:21.000Z"}}