CVE-2026-64684:
Linux Red Hat 취약성 분석 및 완화
개요
CVE-2026-64684 is a credential/token disclosure vulnerability in the rmcp crate — the official Rust SDK for the Model Context Protocol (MCP) — where custom HTTP headers (such as API keys and authentication tokens) are leaked to cross-origin redirect targets. The vulnerability affects rmcp versions up to and including 1.7.0 (prior to 2.1.0) and was disclosed on September 16, 2026. The fix was merged on July 1, 2026 and released in version 2.1.0. It carries a CVSS v3.1 base score of 6.8 (Medium) (GitHub Advisory, Red Hat CVE).
기술적 세부 사항
The vulnerability has two root causes classified under CWE-212 (Improper Removal of Sensitive Information Before Storage or Transfer) and CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). First, the default_http_client() function in crates/rmcp/src/transport/common/reqwest/streamable_http_client.rs builds a reqwest::Client without overriding the default redirect policy, which follows up to 10 redirects and only strips Authorization, Cookie, and Proxy-Authorization headers on cross-origin redirects. Second, the apply_custom_headers() function injects caller-supplied headers (e.g., X-API-Key, X-Auth-Token) via RequestBuilder::header() without marking them as sensitive, so they are forwarded verbatim to any redirect target — including attacker-controlled servers. The auth_header path using builder.bearer_auth() (which maps to the Authorization header) is not affected, as reqwest strips that header on cross-origin redirects (GitHub Advisory, Fix PR).
영향
Successful exploitation allows an unauthenticated attacker who controls or has compromised an MCP endpoint to capture API keys and authentication tokens by issuing a cross-origin 307 or 308 redirect response. The captured credentials can then be reused to impersonate the victim client and make unauthorized calls to the original MCP server. The confidentiality impact is high (credential exfiltration), while integrity and availability are not directly affected (GitHub Advisory).
악용 가능성
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at the time of disclosure. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires the attacker to either compromise or control a legitimate MCP endpoint (man-in-the-middle or supply chain position), which raises the attack complexity to High (GitHub Advisory, Red Hat CVE).
착취 단계
- Identify a target: Locate an application using the
rmcpcrate (versions ≤ 1.7.0) that configuresStreamableHttpClientTransportConfig.custom_headerswith API keys or authentication tokens (e.g.,X-API-Key,X-Auth-Token). - Compromise or control an MCP endpoint: Gain the ability to manipulate HTTP responses from the MCP server the target application connects to — either by compromising the server, performing a MITM attack, or operating a malicious MCP endpoint that the victim connects to.
- Issue a cross-origin redirect: When the
rmcpclient sends a request (e.g., a POST to/mcp), respond with an HTTP 307 Temporary Redirect or 308 Permanent Redirect pointing to an attacker-controlled server at a different origin (e.g.,https://attacker.example.net/capture). - Capture forwarded headers: The
rmcpHTTP client automatically follows the redirect and replays all custom headers — including the API key — to the attacker-controlled destination. Collect the credentials from the incoming request logs on the attacker's server. - Reuse captured credentials: Use the captured API key or token to authenticate directly against the original MCP server, bypassing the legitimate client (GitHub Advisory).
타협의 징후
- Network: Unexpected outbound HTTP requests from the application to unfamiliar or attacker-controlled origins immediately following requests to the configured MCP endpoint; HTTP 307/308 redirect responses from the MCP server pointing to external or unexpected domains.
- Logs: Application or HTTP client logs showing redirect-following behavior (e.g., requests to a second host after an initial MCP request); custom auth headers (e.g.,
X-API-Key,X-Auth-Token) appearing in requests to non-MCP destinations. - Behavioral: Unauthorized API calls to the MCP server using valid credentials from unexpected source IPs, suggesting credential reuse after exfiltration.
완화 및 해결 방법
Upgrade the rmcp crate to version 2.1.0 or later, which disables automatic redirect following in default_http_client() by adding .redirect(reqwest::redirect::Policy::none()) to the reqwest::ClientBuilder. This ensures that 3xx responses are returned to the transport layer for explicit handling rather than being followed automatically. As an interim workaround, restrict network egress from affected systems to only trusted MCP endpoints, and rotate any API keys or authentication tokens that may have been exposed. Callers using the auth_header path (via builder.bearer_auth()) are not affected and do not require immediate action (Fix PR, Release v2.1.0).
추가 자료
리눅스 배포판 수정 현황
주요 리눅스 배포판과 그 릴리스 전반에 걸친 가용성을 수정하세요.
근원: 이 보고서는 AI를 사용하여 생성되었습니다.
관련 Linux Red Hat 취약점:
무료 취약성 평가
클라우드 보안 태세를 벤치마킹합니다
9개의 보안 도메인에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 식별합니다.
추가 Wiz 리소스
맞춤형 데모 받기
맞춤형 데모 신청하기
"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."