Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Victim must configure and actively use an HTTP proxy (UI:R); malicious proxy or active MITM required (AC:H); availability-only OOM impact with no confidentiality or integrity consequence.
Primary rating from Vendor (https://github.com/rclone/rclone).
CVSS VectorVendor: https://github.com/rclone/rclone
Lifecycle Timeline
2DescriptionCVE.org
1. Summary
The shared HTTP CONNECT helper parses a proxy response with http.ReadResponse over an unrestricted buffered reader. The production helper accepted a valid response containing a 2 MiB header in three consecutive runs. A malicious or compromised configured proxy, or an active on-path actor controlling a plaintext HTTP-proxy hop, can grow memory until the process fails.
The security impact is process-wide exhaustion, not loss of access through the malicious proxy, which the proxy already controls. The victim must configure and use the proxy, so UI is Required and the rating is Medium.
2. Affected Assets & Attack Surface
- Verified rclone revision:
a0c09f1381ae93e2a9a33c529d170186c61ad058(v1.74.0-240-ga0c09f138) - Current-master check:
lib/proxy/http.gowas unchanged at master commit961266888fe797390c535386f3b3aa46f4853602on 2026-07-18 - Shared helper:
lib/proxy/http.go:23-81 - SFTP use:
backend/sftp/ssh_internal.go:25-45 - FTP use:
backend/ftp/ftp.go:465-479 - Proxy peer: configured malicious/compromised proxy or active on-path actor for a plaintext HTTP proxy
- TLS boundary: HTTPS proxy connections authenticate the proxy before this response is parsed, so an on-path actor must also defeat TLS
3. Technical Root Cause Analysis
HTTPConnectDial invokes http.ReadResponse(br, req) directly. This call does not inherit http.Transport.MaxResponseHeaderBytes. In the Go implementation used for validation, exported textproto.Reader.ReadMIMEHeader passes math.MaxInt64 limits, and textproto.NewReader explicitly instructs callers to use io.LimitReader or an equivalent bound for denial-of-service resistance. Rclone supplies no bound or total CONNECT-handshake deadline. The helper additionally returns the raw connection, so a safe remediation must preserve any tunnel bytes already buffered after the CONNECT response.
4. Proof-of-Concept & Evidence
- Configure the helper to use a test proxy.
- Accept rclone's CONNECT request.
- Return
HTTP/1.1 200 Connection Establishedwith anX-Fillheader containing 2 MiB of data. - The actual helper parses and accepts the entire response without a fixed ceiling; this succeeded in all three reruns.
The test establishes unbounded parsing behavior without intentionally exhausting the host.
5. Impact Assessment
Large or concurrent CONNECT responses can terminate the rclone process and interrupt unrelated FTP/SFTP remotes and mounts. Runtime OOM cannot be contained by RC panic recovery. SFTP reaches this parser before SSH server authentication, so target host-key validation does not constrain a malicious proxy; HTTPS proxy authentication does constrain ordinary on-path attackers.
6. Remediation Guidance
- Enforce a total CONNECT status/header budget before parsing.
- Add a fixed total handshake deadline as well as idle deadlines.
- Close the connection on an oversized or malformed response.
- Return a wrapper that consumes already buffered post-response tunnel bytes before the raw connection.
- Test large single/multiple headers, slow streaming, and concurrent handshakes.
AnalysisAI
Memory exhaustion in rclone's shared HTTP CONNECT proxy helper (lib/proxy/http.go) allows a malicious or compromised proxy to crash the rclone process by returning arbitrarily large CONNECT response headers. Versions up to and including 1.74.0 are affected; the fix is confirmed in v1.75.0. No active exploitation has been identified (not in CISA KEV), but the advisory includes a detailed proof-of-concept demonstrating that a 2 MiB header is accepted without error across repeated test runs, and the impact is process-wide OOM affecting all FTP, SFTP, and other rclone mounts concurrently.
Technical ContextAI
The root cause (CWE-400: Uncontrolled Resource Consumption) is in HTTPConnectDial within lib/proxy/http.go:23-81, a shared helper invoked by both the SFTP backend (backend/sftp/ssh_internal.go:25-45) and the FTP backend (backend/ftp/ftp.go:465-479). The function calls http.ReadResponse(br, req) over an unbounded bufio.NewReader with no io.LimitReader wrapper. Go's textproto.NewReader documentation explicitly advises callers to apply io.LimitReader for DoS resistance, and http.ReadResponse does not inherit http.Transport.MaxResponseHeaderBytes in this context. The affected package is pkg:go/github.com_rclone_rclone at the verified revision a0c09f1381ae93e2a9a33c529d170186c61ad058 (v1.74.0). The helper also returns the raw connection after parsing, requiring the remediation to preserve any tunnel bytes (SSH banner, FTP greeting) already buffered beyond the CONNECT response - addressed in the fix via a bufferedConn wrapper.
RemediationAI
Upgrade rclone to v1.75.0 or later, which applies the fix in commit 21d8cd3b92cd81d987f485051d454ea675d91a2b (https://github.com/rclone/rclone/commit/21d8cd3b92cd81d987f485051d454ea675d91a2b). The patch wraps the proxy connection in an io.LimitedReader capped at 1 MiB before passing it to bufio.NewReader, adds an error path that closes the connection if the limit is exceeded, and introduces a bufferedConn wrapper to preserve any tunnel bytes already buffered after the CONNECT response. For environments that cannot immediately upgrade, configure rclone to use only internally-controlled, trusted HTTP proxies and avoid routing traffic through third-party or shared proxy infrastructure. Where possible, prefer HTTPS proxy URLs over HTTP proxy URLs - HTTPS proxy connections require TLS authentication before the vulnerable CONNECT response is parsed, blocking passive on-path attackers. Restricting concurrent rclone mounts per process can limit blast radius if exploitation occurs, since the OOM impact is process-wide.
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53615
GHSA-xhf4-832v-7xcr