Skip to content
Phạm Nam

Search

Type a keyword to search the posts.

Go back
en

Rclone serve sftp auth bypass (CVE-2026-134352): upgrade to 1.76.0 — a public key can act as a password

Rclone 1.76.0 fixes an auth bypass in serve sftp --auth-proxy (CVE-2026-134352, CVSS 4.0 9.2). Check your version and upgrade — there is no workaround.

10 min read—

Rclone

Image: Rclone official image, rclone.org. Rclone is MIT-licensed software; the image is the project’s own artwork, used with attribution.

Rclone serve sftp auth bypass (CVE-2026-134352): upgrade to 1.76.0 — a public key can act as a password

Evidence: RESEARCH_ONLY — NOT LAB TESTED. This article is based on primary sources read directly on 2026-11-23: the rclone changelog and downloads page, the official 1.76.0 release announcement, and the GitHub security advisories for all four CVEs covered here. No lab run was performed and no upgrade, exploit, or configuration was reproduced by the author. Nothing in this article describes a hands-on result. See Verification scope.

The question

You run rclone on a home server or NAS — syncing, mounting, or serving files — and on 21 November 2026 the project published CVE records for a batch of authentication flaws in its serve modes. The headline flaw, CVE-2026-134352, lets an attacker use a victim’s public key as if it were a password against serve sftp --auth-proxy. Are you affected, and what do you do about it?

The decision up front: check whether you run serve sftp with --auth-proxy, and upgrade rclone to 1.76.0. Version 1.76.0 was released on 2026-11-06 and fixes CVE-2026-134352. There is no vendor-issued workaround — the upgrade is the fix. If you also run serve webdav or serve s3 with --auth-proxy, version 1.75.2 (released 2026-10-09) already fixes the two flaws in those modes, and 1.76.0 contains those fixes too — so upgrading to 1.76.0 closes the whole cluster at once.

What the headline flaw is

CVE-2026-134352 is an authentication bypass in serve sftp --auth-proxy, scored CVSS 4.0: 9.2 Critical by the assigning CNA (VulnCheck) and CVSS 3.1: 8.1 High (VulnCheck, as recorded in the NVD entry) — the same flaw under two scoring versions, so always note which version a number belongs to. Its weakness is CWE-287 (Improper Authentication), advisory GHSA-66qv-66mg-9h74. It affects rclone 1.51.0 to below 1.76.0 and is fixed in 1.76.0. The CVE record was published on 2026-11-21.

The mechanism, documented in the advisory with source code, is a cache-key flaw. The auth proxy caches authentication decisions in cmd/serve/proxy/proxy.go. The function generateCacheKey(user, auth, clientIP) builds the cache key from the username, a hash of the credential, and the client IP — but it omits the authentication method (authKind). On a cache hit, Proxy.Call does not re-check which method was used, so the proxy is never called at all. Worse, PasswordCallback is unconditional, so even a deployment configured for key-only authentication cannot disable the password path.

The credential at the centre of this is the victim’s base64 public key — the value stored in authorized_keys. A public key is public by design: it can appear in a public GitHub profile or a shared authorized_keys file. No private key is needed, no private key is exposed, and no password is needed. The flaw is that rclone treats that public value as a password-equivalent credential when the cache is hit.

The exact preconditions

All six of these must hold. This is not an “anyone on the internet can log in” flaw, and it is not remote code execution:

  1. The server is serve sftp running with --auth-proxy. This is the only affected server: serve ftp, serve http and serve webdav pass isPublicKey=false, and serve s3 uses only CallAccessKey.
  2. The attacker knows the victim’s base64 public key (public information, not a secret).
  3. The attacker uses the same username as the victim.
  4. The attacker connects from the same client IP as the victim. The advisory notes this is a weak precondition behind NAT, a bastion host, or a load balancer — and it disappears entirely on a unix socket, where the client IP is empty.
  5. The victim’s key entry is still in the cache: the default lifetime is 300 seconds of disuse, refreshed on each access. The victim does not need to stay connected.
  6. The proxy treats the two methods differently — sharpest when a key-only policy refuses every password.

When those conditions are met, the attacker gains the victim’s read-write VFS (virtual file system) without the auth proxy being called. The reporter verified this end to end against a real listener: they read a file and wrote a new file, while an instrumented proxy recorded zero invocations. That is a researcher proof of concept, not exploitation in the wild.

Exploitation status

None of the four CVEs in this article is in the CISA Known Exploited Vulnerabilities (KEV) catalog as of 2026-11-23, and there is no confirmed exploitation in the wild for any of them. What exists is researcher proof-of-concept work only. Absence of reports is not proof of absence — but there is no evidence anyone has used these flaws outside a lab report.

The rest of the cluster

CVE-2026-134352 is the sharpest flaw, but it arrived with three related serve-auth flaws. Upgrading to 1.76.0 closes all four; the two older ones were already fixed in 1.75.2.

CVECVSS 4.0 / CVSS 3.1What happensAffectedFixed in
CVE-2026-1343529.2 Critical / 8.1 HighPublic key used as a password against serve sftp --auth-proxy; attacker gains the victim’s read-write VFS1.51.0 to < 1.76.01.76.0 (2026-11-06)
CVE-2026-1343506.3 Medium / 4.8 MediumUlozto download path sends X-Auth-Token and X-User-Token to unintended hosts on redirect1.67.0 to < 1.76.01.76.0 (2026-11-06)
CVE-2026-1161936.9 Medium / 5.3 MediumOPTIONS requests skip authentication in serve webdav; Allow header reveals whether a path exists and whether it is a file or a collection1.64.0 to < 1.75.21.75.2 (2026-10-09)
CVE-2026-1161876.1 Medium / 5.0 MediumAn authenticated serve s3 --auth-proxy tenant who learns a victim’s bucket, object and upload ID can inject parts into, complete, or abort the victim’s in-flight multipart upload1.68.0 to < 1.75.21.75.2 (2026-10-09)

CVE-2026-134350 — Ulozto token leak on redirect

GHSA-3xpx-hjg2-vrjh, CVE published 2026-11-21. The Ulozto download path uses the authenticated f.rest client instead of the purpose-built unauthenticated f.cdn client, so on an HTTP redirect the long-lived X-Auth-Token (an app API key giving persistent account access) and the session X-User-Token are sent to unintended hosts. Go’s redirect handling strips Authorization and Cookie headers, but not these two. This is not a “click a link and leak” flaw: the attacker must be able to observe or redirect CDN download traffic — a network position, DNS or BGP hijack, or a compromised CDN edge. The API endpoint is hardcoded to https://apis.uloz.to. One source conflict to note: the CVE record gives the affected range as 1.67.0 to below 1.76.0, while the advisory text says the flaw exists since the Ulozto backend was first added. This article uses the CVE record range; the fix version, 1.76.0, is undisputed.

CVE-2026-116193 — webdav OPTIONS bypass (metadata only)

GHSA-gj73-fh6v-92fj, CVE published 2026-10-25. Both HTTP authentication middlewares return early for any OPTIONS request — the exemption was meant for CORS preflights, but there is no check for an Origin header plus Access-Control-Request-Method. serve webdav routes OPTIONS to a real handler, so an unauthenticated attacker can probe any path and read the Allow header, which differs for an existing file, an existing collection, and a missing path. That is namespace enumeration. The --user/--pass, --htpasswd and --auth-proxy protections are all bypassed for that method. The impact is metadata only: no file contents, listings, or writes are reachable through OPTIONS.

CVE-2026-116187 — S3 cross-tenant multipart uploads

GHSA-35g6-9fjv-rmx5, CVE published 2026-10-25, weakness CWE-639. Multipart sub-operations (UploadPart, CompleteMultipartUpload, AbortMultipartUpload) resolve an upload by upload ID alone and never re-check the caller against the per-tenant VFS. An already authenticated tenant who learns a victim’s bucket, object and upload ID can inject parts, complete or abort the in-flight upload, and view upload and object metadata across tenants. The upload ID is a random UUIDv4, so it must be obtained — for example via ListMultipartUploads while owning a same-named bucket — and the victim upload must be in flight (idle uploads are reaped only after --multipart-expiry, default 24 hours). The limits matter: this is not a breach of at-rest content, the destination key is fixed by the victim rather than chosen by the attacker, and ordinary object operations are unaffected.

Version 1.76.0 also fixes a wider security batch — CVE-2026-134348, CVE-2026-134349, CVE-2026-134351, CVE-2026-134353 and CVE-2026-134354 — and now refuses HTTPS-to-HTTP redirects by default (override with --allow-https-downgrade). The CVE numbers were assigned after release — the changelog listed these fixes as CVE-PENDING with GHSA codes at release time; the CVE-to-GHSA mapping is recorded in the Debian package tracker (see Sources). Those are noted here for completeness; they are not this article’s focus.

What to do

Step 1 — Check your version

rclone version

If the version is below 1.76.0, you are in the affected range for CVE-2026-134352 (1.51.0 to below 1.76.0). If it is below 1.75.2, you are also unpatched for CVE-2026-116193 and CVE-2026-116187.

Step 2 — Upgrade to 1.76.0

The official release announcement gives two paths: download the new release from rclone.org, or use rclone selfupdate. If you are on a version below 1.75.2, download from rclone.org and verify the download’s hash or signature following the official instructions on the downloads page. The reason: the selfupdate updater in versions below 1.75.2 had a hash-verification flaw (fixed in 1.75.2, GHSA-w33h-3qgq-8mv8), so running it from an old version would use that vulnerable updater. From 1.75.2 onward, selfupdate is safe to use:

rclone selfupdate

Before upgrading, back up your configuration file ~/.config/rclone/rclone.conf — it holds the credentials and tokens for your remotes. If 1.76.0 causes a problem, roll back by reinstalling the previous version and restoring that backup.

Then run rclone version again and confirm it reports 1.76.0. If you install from a distribution package or a container image instead, use that channel’s update — the official Docker image is rclone/rclone — and confirm the installed version the same way.

Step 3 — Audit which serve modes you expose

The upgrade closes the flaws, but the cluster is a reminder that serve authentication deserves its own audit. Check how each rclone serve instance on your network is started and how it authenticates:

  • serve sftp --auth-proxy was the only mode exposed to CVE-2026-134352. If you run it, confirm it now runs 1.76.0 — and consider whether it needs to be reachable beyond your LAN or VPN at all.
  • serve webdav and serve s3 --auth-proxy were exposed to the two 1.75.2 flaws. A reader already on 1.75.2 is patched for those two; 1.76.0 covers them as well.
  • serve sftp behind NAT, a bastion, or a load balancer shared its client IP with other users, which weakened the same-IP precondition of CVE-2026-134352. After upgrading, that shared-IP exposure no longer matters for this flaw — but it is still worth knowing who shares an egress IP with your service.

No vendor workaround was published for CVE-2026-134352. Until the upgrade is done, the only interim mitigation is general network restriction: do not expose the service to the internet, restrict it with an IP allowlist, or put it behind a VPN. That is hardening advice, not a vendor workaround, and it does not substitute for the upgrade.

Step 4 — Mind the old-system ceiling

Rclone 1.76.0 needs Linux kernel 3.2 or newer, macOS 12 or newer, Windows 10 / Server 2016 or newer, FreeBSD 12.2 or newer, or OpenBSD 6.9 or newer. Two older systems have hard ceilings that leave them unpatched: Windows 7 tops out at rclone v1.63.1 and macOS 10.15 at v1.70.3 — neither contains these fixes. If your serve host runs one of those, the upgrade path is a newer operating system, not a newer rclone. Rclone is MIT-licensed (license file COPYING at the repository root), and no published long-term-support or security-backport policy was found — fixes land in the next release, so staying on an old branch means staying unpatched.

Verification scope

  • RESEARCH_ONLY — NOT LAB TESTED. No rclone instance was run, no upgrade was performed, and no proof of concept was reproduced for this article.
  • Every version, score, affected range, fix version and precondition in this article comes from the evidence ledger (rclone-serve-auth-bypass-cve-2026-134352.evidence.csv, 30 claims: 28 verified, 2 unverified) and the research notes, all checked on 2026-11-23. No CWE is stated for CVE-2026-134350, and no support window or backport is claimed anywhere in this article.
  • “Latest version” means latest as observed on 2026-11-23. Re-check the changelog on publish day: a 1.76.1 or later release, or a CISA KEV addition for any of these CVEs, would change the advice.
  • CVSS numbers are always labelled with their version (4.0 from the assigning CNA, 3.1 from VulnCheck as recorded in the NVD entry). The direct NVD page fetch timed out once during research; the 3.1 scores were corroborated through three NVD-mirroring sources each.

Sources


Related posts

Bình luận

Bình luận được duyệt trước khi hiển thị.

Đang tải bình luận…

Để lại bình luận