CVE-2026-49980: Rclone Unauthenticated Command Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-qw24-gh76-8rvv
CVSS 9.8
CWE-78 CWE-306
Published
Advisory Summary

CVE-2026-49980 is a CRITICAL (CVSS 9.8) unauthenticated command execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Rclone libraries in the Go ecosystem. The issue involves unauthenticated command execution in `rclone rcd --rc-serve` via inline remote instantiation, bypassing cve-2026-41179 fix. Remediation is available by upgrading affected packages to version 1.74.3.

CVE-2026-49980 at a Glance

CVE Identifier CVE-2026-49980
GHSA Identifier GHSA-qw24-gh76-8rvv
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Rclone
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2026-49980

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.74.3
Upgrade github.com/rclone/rclone to 1.74.3
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 CVE-2026-49980, 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.74.3), 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. 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

## Summary `rclone rcd --rc-serve` accepts unauthenticated `GET` and `HEAD` requests to paths of the form: ```text /[remote:path]/object ``` The `remote` value is parsed from the URL and passed to normal backend initialization. Inline remote configuration can set backend options that execute local commands during initialization. As a result, a single unauthenticated `GET` or `HEAD` request can execute a command as the rclone process user. Versions from 1.55.0 onwards are vulnerable to command execution. Earlier versions (from 1.46.0) are vulnerable to the unauthenticated local file read described under "Additional impact" but not to command execution, because inline backend option overrides did not exist until 1.55.0. ## Preconditions Preconditions for this vulnerability are: - The rclone remote control API must be enabled, either by the `--rc` flag or by running the `rclone rcd` server - The remote control API must be reachable by the attacker - by default rclone only serves the rc to localhost unless the `--rc-addr` flag is in use - The rc must have been deployed without global RC HTTP authentication - so not using `--rc-user`/`--rc-pass`/`--rc-htpasswd`/etc - The `--rc-serve` flag must be in use ## Impact An unauthenticated network attacker who can reach the RC HTTP listener can execute commands as the rclone process user. Additional impact observed during testing: - `GET` and `HEAD` both trigger backend initialization. - The same path allows unauthenticated local file read through inline `local` remotes. - Inline `global.*` options can mutate process-wide rclone configuration, including `global.http_proxy`. - Browser subresource requests can also trigger the issue against a localhost-only RC listener. In testing, Firefox triggered the payload from a public HTTPS page containing only an `<img>` tag pointing at `http://127.0.0.1:5572/...`. This is an additional impact multiplier, not the primary attack precondition. ## Mitigations / Workarounds - Upgrade to rclone 1.74.3 (or 1.75.0 when released). - Or, configure HTTP authentication on the rc with `--rc-user`/`--rc-pass` or `--rc-htpasswd`, which has always been the recommended deployment. - Or, do not use `--rc-serve` if file serving is not needed. ## The Fix The vulnerabilities in this advisory have been fixed by two commits: - rc: fix unauthenticated command execution via `--rc-serve` inline remotes - rc: stop `global.*` connection string options changing config

CVE-2026-49980 Affected Rclone Versions

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

References

Frequently Asked Questions

What is CVE-2026-49980?
CVE-2026-49980 is a security vulnerability in Rclone involving Unauthenticated command execution in `rclone rcd --rc-serve` via inline remote instantiation, bypassing CVE-2026-41179 fix under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Rclone versions are affected?
Affected versions include releases prior to 1.74.3 across affected packages: github.com/rclone/rclone.
What version fixes CVE-2026-49980?
Upgrading to 1.74.3 (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.74.3. Upgrade your dependency to 1.74.3 or later.
What is the CVSS score of CVE-2026-49980?
CVE-2026-49980 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-49980?
CVE-2026-49980 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2026-49980?
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-qw24-gh76-8rvv",
  "modified" : "2026-07-21T13:16:20Z",
  "published" : "2026-06-16T23:39:41Z",
  "aliases" : [ "CVE-2026-49980" ],
  "summary" : "Rclone: Unauthenticated command execution in `rclone rcd --rc-serve` via inline remote instantiation, bypassing CVE-2026-41179 fix",
  "details" : "## Summary\n\n`rclone rcd --rc-serve` accepts unauthenticated `GET` and `HEAD` requests to paths of the form:\n\n```text\n/[remote:path]/object\n```\n\nThe `remote` value is parsed from the URL and passed to normal backend initialization. Inline remote configuration can set backend options that execute local commands during initialization. As a result, a single unauthenticated `GET` or `HEAD` request can execute a command as the rclone process user.\n\nVersions from 1.55.0 onwards are vulnerable to command execution. Earlier versions (from 1.46.0) are vulnerable to the unauthenticated local file read described under \"Additional impact\" but not to command execution, because inline backend option overrides did not exist until 1.55.0.\n\n## Preconditions\n\nPreconditions for this vulnerability are:\n\n- The rclone remote control API must be enabled, either by the `--rc` flag or by running the `rclone rcd` server\n- The remote control API must be reachable by the attacker - by default rclone only serves the rc to localhost unless the `--rc-addr` flag is in use\n- The rc must have been deployed without global RC HTTP authentication - so not using `--rc-user`/`--rc-pass`/`--rc-htpasswd`/etc\n- The `--rc-serve` flag must be in use\n\n## Impact\n\nAn unauthenticated network attacker who can reach the RC HTTP listener can execute commands as the rclone process user.\n\nAdditional impact observed during testing:\n\n- `GET` and `HEAD` both trigger backend initialization.\n- The same path allows unauthenticated local file read through inline `local` remotes.\n- Inline `global.*` options can mutate process-wide rclone configuration, including `global.http_proxy`.\n- Browser subresource requests can also trigger the issue against a localhost-only RC listener. In testing, Firefox triggered the payload from a public HTTPS page containing only an `<img>` tag pointing at `http://127.0.0.1:5572/...`. This is an additional impact multiplier, not the primary attack precondition.\n\n## Mitigations / Workarounds\n\n- Upgrade to rclone 1.74.3 (or 1.75.0 when released).\n- Or, configure HTTP authentication on the rc with `--rc-user`/`--rc-pass`\n  or `--rc-htpasswd`, which has always been the recommended deployment.\n- Or, do not use `--rc-serve` if file serving is not needed.\n\n## The Fix\n\nThe vulnerabilities in this advisory have been fixed by two commits:\n\n- rc: fix unauthenticated command execution via `--rc-serve` inline remotes\n- rc: stop `global.*` connection string options changing config",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rclone/rclone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.46.0"
      }, {
        "fixed" : "1.74.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.74.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/security/advisories/GHSA-qw24-gh76-8rvv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49980"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2026-49980"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2492478"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rclone/rclone"
  }, {
    "type" : "WEB",
    "url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49980.json"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306", "CWE-78" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-16T23:39:41Z",
    "nvd_published_at" : "2026-06-24T19:17:11Z"
  }
}