CVE-2026-67305
Wolfi 취약성 분석 및 완화

개요

CVE-2026-67305 is a heap-based buffer overflow vulnerability in the FreeRDP Windows client (wfreerdp) affecting the clipboard virtual channel when processing CLIPRDR_FILE_CONTENTS_RESPONSE PDUs. The flaw exists because the server-provided size value (cbRequested) is used directly as the length parameter for CopyMemory() without any bounds checking against the destination buffer, allowing a malicious RDP server to trigger arbitrary heap memory corruption. All FreeRDP versions up to and including 3.28.0 are affected; version 3.29.0 contains the fix. It carries a CVSS v4.0 base score of 9.4 (Critical) (GitHub Advisory, FreeRDP Advisory). The vulnerability was published on August 1, 2026.

기술적 세부 사항

The root cause is classified as CWE-122 (Heap-based Buffer Overflow). The vulnerable code path spans three functions: CliprdrStream_Read() (wf_cliprdr.c:249), wf_cliprdr_server_file_contents_response() (wf_cliprdr.c:2449), and cliprdr_read_file_contents_response() (cliprdr_common.c:384). When the client requests cb bytes of file content, the malicious server responds with a CLIPRDR_FILE_CONTENTS_RESPONSE PDU where dataLen is far larger than cb; the parser computes cbRequested = dataLen - 4 with no upper-bound validation, assigns this server-controlled value to clipboard->req_fsize, and then CliprdrStream_Read() executes CopyMemory(pv, req_fdata, req_fsize) — writing up to 65,536+ bytes into a buffer allocated for only cb bytes (e.g., 16,384 bytes), resulting in a ~49,152-byte out-of-bounds heap write. Exploitation requires clipboard redirection to be enabled (the default) and the victim to perform a paste operation (Ctrl+V) in Windows Explorer after connecting to the malicious server (FreeRDP Advisory).

영향

Successful exploitation enables arbitrary heap memory corruption in the FreeRDP client process, overwriting heap metadata and adjacent heap objects. Under favorable heap layout conditions, an attacker can achieve control-flow hijacking and Remote Code Execution (RCE) with the privileges of the FreeRDP client process. The CVSS v4.0 scoring reflects high confidentiality, integrity, and availability impact on both the vulnerable and subsequent systems, meaning a compromised client could serve as a pivot point for further lateral movement within the victim's network (GitHub Advisory, FreeRDP Advisory).

착취 단계

  1. Set up a malicious RDP server: Deploy the evil_rdp_server.py PoC script (documented in the FreeRDP advisory) on an attacker-controlled host, configuring the --overflow-size parameter (e.g., 65536) to control the overflow magnitude.
  2. Lure the victim: Social-engineer or redirect the target user into connecting their FreeRDP Windows client (wfreerdp) to the attacker's server (e.g., via a phishing link, DNS poisoning, or a rogue network).
  3. Complete RDP handshake: The malicious server performs a standard RDP negotiation (X.224, MCS, security/license exchange, capability exchange) with clipboard redirection enabled by default, establishing the virtual channel.
  4. Initiate clipboard channel: The server sends CB_MONITOR_READY and a FORMAT_LIST PDU advertising CF_HDROP (file drop format), prompting the client to request file content.
  5. Trigger the overflow: When the victim performs a paste operation (Ctrl+V) in Windows Explorer, the client sends a FILECONTENTS_RANGE request for cb bytes. The malicious server responds with a CLIPRDR_FILE_CONTENTS_RESPONSE PDU where dataLen = OVERFLOW_SIZE + 4 (e.g., 65540), causing cbRequested = 65536 to be assigned to clipboard->req_fsize.
  6. Achieve heap corruption: CliprdrStream_Read() executes CopyMemory(pv, req_fdata, req_fsize), writing 65,536 bytes into a ~16,384-byte buffer, corrupting adjacent heap objects including IStreamVtbl function pointers.
  7. Gain code execution: Under a crafted heap layout, OLE virtual calls (e.g., Release, Read, Stat) on the corrupted adjacent IStream object redirect execution to attacker-controlled addresses, achieving RCE with the privileges of the wfreerdp process (FreeRDP Advisory).

타협의 징후

  • Network: Inbound RDP connections (TCP port 3389 or non-standard ports like 13389) from unknown or untrusted external IP addresses to client workstations; unusual outbound connections from the FreeRDP client process following an RDP session.
  • Process: Unexpected child processes spawned by wfreerdp.exe (e.g., cmd.exe, powershell.exe, curl.exe); wfreerdp.exe crashing with access violations or heap corruption errors (SIGSEGV / STATUS_HEAP_CORRUPTION) during or after clipboard paste operations.
  • Logs: Windows Event Log entries showing wfreerdp.exe application crashes (Event ID 1000/1001) with fault module related to heap operations; Windows Error Reporting (WER) crash dumps for wfreerdp.exe generated during clipboard activity.
  • File System: Unexpected WER crash dump files (.dmp) in %LOCALAPPDATA%\CrashDumps\ or %TEMP% associated with wfreerdp.exe; new or modified files in user-writable directories created by wfreerdp.exe or its child processes shortly after an RDP session.

완화 및 해결 방법

Update the FreeRDP Windows client to version 3.29.0 or later, which contains the fix for this vulnerability (FreeRDP Advisory). Note that the FreeRDP project also states that wfreerdp is unmaintained and should not be used; users are advised to migrate to a supported client. As an interim workaround, disable clipboard redirection in RDP client settings (/clipboard flag) if clipboard functionality is not required, or restrict RDP connections exclusively to trusted, known-good servers. Avoid connecting to untrusted or unknown RDP servers until the patch is applied.

추가 자료


근원이 보고서는 AI를 사용하여 생성되었습니다.

관련 Wolfi 취약점:

CVE ID

심각도

점수

기술

구성 요소 이름

CISA KEV 익스플로잇

수정 사항이 있습니다.

게시된 날짜

CVE-2026-67305CRITICAL9.4
  • Wolfi logoWolfi
  • freerdp
아니요Aug 01, 2026
CVE-2026-68579HIGH8.7
  • Wolfi logoWolfi
  • freerdp
아니요Aug 02, 2026
CVE-2026-67304HIGH8.7
  • Wolfi logoWolfi
  • freerdp3
아니요Aug 01, 2026
CVE-2026-68580HIGH7.7
  • Wolfi logoWolfi
  • libwinpr
아니요Aug 02, 2026
CVE-2026-67306MEDIUM5.3
  • Wolfi logoWolfi
  • freerdp-plugins
아니요Aug 01, 2026

무료 취약성 평가

클라우드 보안 태세를 벤치마킹합니다

9개의 보안 도메인에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 식별합니다.

평가 요청

추가 Wiz 리소스

맞춤형 데모 받기

맞춤형 데모 신청하기

"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
데이비드 에슬릭최고정보책임자(CISO)
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
아담 플레처최고 보안 책임자(CSO)
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자