GHSA-8mxv-9xhp-86h4: rclone S3 Redirect Sanitization Omits IBM Vulnerability

MODERATE
CVSS 5.3
CWE-319 CWE-522 CWE-200
Published
Advisory Summary

GHSA-8mxv-9xhp-86h4 is a MODERATE (CVSS 5.3) s3 redirect sanitization omits ibm vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting rclone libraries in the Go ecosystem. The issue involves s3 redirect sanitization omits ibm iam bearer tokens and sse-c keys. Remediation is available by upgrading affected packages to version 1.75.0.

GHSA-8mxv-9xhp-86h4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8mxv-9xhp-86h4
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-319: Cleartext Transmission of Sensitive Information
Affected Product rclone
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-8mxv-9xhp-86h4

To remediate this vulnerability, upgrade all affected rclone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/rclone/rclone fixed: 1.75.0
Upgrade github.com/rclone/rclone to 1.75.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/rclone/rclone

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8mxv-9xhp-86h4, inspect your project dependencies for rclone:

inspect dependencies for github.com/rclone/rclone

Analyze the terminal output to locate any version of rclone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.75.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In rclone, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 1. Summary The 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: - a same-host HTTPS-to-HTTP redirect preserves `Authorization: Bearer ...` and exposes a reusable IBM IAM token to the plaintext network path; - a cross-origin redirect preserves SSE-C and copy-source SSE-C key headers. The 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. ## 2. Affected Assets & Attack Surface - S3 redirect policy: `backend/s3/s3.go:1345-1379` - IBM IAM signer: `backend/s3/ibm_signer.go:28-40` - SSE-C key preparation: `backend/s3/s3.go:1821-1837` - Affected operations: requests carrying IBM IAM authorization, SSE-C keys, or copy-source SSE-C keys - Confirmed affected version: `<= v1.74.0-240-ga0c09f138` ## 3. Technical Root Cause Analysis `s3CheckRedirect` applies a one-header denylist: ```go if s3RedirectCrossesHost(req, via) { req.Header.Del("X-Amz-Security-Token") } ``` Go 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. ## 4. Proof-of-Concept & Evidence Using the actual redirect callback: 1. An HTTPS endpoint redirected to HTTP on the same hostname. 2. The plaintext destination received the planted IBM bearer token and SSE-C headers. 3. A separate redirect to an unrelated hostname caused Go to remove `Authorization`, but the destination still received both SSE-C key headers. 4. In both cases, rclone removed the planted STS token, proving that the S3-specific callback executed while omitting the other secret classes. The 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. ## 5. Impact Assessment A 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. ## 6. Remediation Guidance - Reject every HTTPS-to-HTTP redirect before replay. - Do not automatically follow secret-bearing cross-origin redirects. - 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. - Where redirects are required, allowlist exact destinations and reconstruct/re-sign a new request. - Add redirect tests for every secret header class and for scheme, hostname, subdomain, and port changes.

GHSA-8mxv-9xhp-86h4 Affected rclone Versions

1 component(s)
Fixed Versions:
1.75.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rclone/rclone
Go
< 1.75.0
1.75.0

References

Frequently Asked Questions

What is GHSA-8mxv-9xhp-86h4?
GHSA-8mxv-9xhp-86h4 is a security vulnerability in rclone involving S3 Redirect Sanitization Omits IBM IAM Bearer Tokens and SSE-C Keys under CWE-319: Cleartext Transmission of Sensitive Information.
Which rclone versions are affected?
Affected versions include releases prior to 1.75.0 across affected packages: github.com/rclone/rclone.
What version fixes GHSA-8mxv-9xhp-86h4?
Upgrading to 1.75.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rclone/rclone affected?
Yes, github.com/rclone/rclone is affected in releases prior to 1.75.0. Upgrade your dependency to 1.75.0 or later.
What is the CVSS score of GHSA-8mxv-9xhp-86h4?
GHSA-8mxv-9xhp-86h4 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-8mxv-9xhp-86h4?
GHSA-8mxv-9xhp-86h4 is classified under CWE-319: Cleartext Transmission of Sensitive Information (The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.).
How can I check Go dependencies for GHSA-8mxv-9xhp-86h4?
Run the dependency tree command: 'inspect dependencies for github.com/rclone/rclone'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8mxv-9xhp-86h4",
  "modified" : "2026-08-05T20:27:50Z",
  "published" : "2026-08-05T20:27:50Z",
  "aliases" : [ ],
  "summary" : "rclone: S3 Redirect Sanitization Omits IBM IAM Bearer Tokens and SSE-C Keys",
  "details" : "## 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rclone/rclone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.75.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.74.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/security/advisories/GHSA-8mxv-9xhp-86h4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/commit/7543a7a87884aca957590b20b0714078d51af87b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/commit/9328763d1b73db71e97c0332b19e3747abeb9191"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rclone/rclone"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/releases/tag/v1.75.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-319", "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-05T20:27:50Z",
    "nvd_published_at" : null
  }
}