CVE-2026-57157
Received Received - Intake

Out-of-Bounds Read in FreeRDP MS-RDPECAM Channel

Vulnerability report for CVE-2026-57157, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-10

Last updated on: 2026-07-10

Assigner: GitHub, Inc.

Description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.28.0, FreeRDP server implementations with the MS-RDPECAM camera device enumerator channel enabled scan attacker-supplied DeviceName and VirtualChannelName fields for a NUL terminator in channels/rdpecam/server/camera_device_enumerator_main.c and then dereference once past the scan bound, allowing a malicious RDP client to trigger a 1- to 2-byte out-of-bounds heap read. This issue is fixed in version 3.28.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-10
Last Modified
2026-07-10
Generated
2026-07-11
AI Q&A
2026-07-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
freerdp freerdp to 3.28.0 (exc)
freerdp freerdp 3.28.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-57157 is an out-of-bounds heap read vulnerability in FreeRDP server implementations that have the MS-RDPECAM camera device enumerator channel enabled. The vulnerability arises because the server scans attacker-supplied DeviceName and VirtualChannelName fields for a null terminator but then dereferences the pointer one byte beyond the scanned boundary without re-checking if it is still within the valid buffer. If the fields are not properly null-terminated and fill the buffer exactly, this leads to reading memory beyond the allocated heap buffer.

This flaw allows a malicious RDP client to trigger a 1- to 2-byte out-of-bounds read, potentially causing a denial of service by crashing the server process if the read lands on unmapped memory. The issue was fixed in FreeRDP version 3.28.0 by improving the parsing logic to correctly handle null terminators and bounds checking.

Impact Analysis

This vulnerability can be exploited by a malicious RDP client to cause a denial of service (DoS) on the FreeRDP server by triggering a crash. The out-of-bounds read may cause the server process to access invalid memory, leading to a crash and service interruption.

The CVSS score indicates a medium severity impact with a base score of 6.5, reflecting the potential for confidentiality loss (limited data exposure) and availability impact (server crash). There is no indication that this vulnerability allows code execution or privilege escalation.

Detection Guidance

This vulnerability involves an out-of-bounds heap read triggered by a malicious RDP client sending specially crafted DeviceName and VirtualChannelName fields without proper null terminators to a FreeRDP server with the MS-RDPECAM channel enabled.

Detection would involve monitoring FreeRDP server logs or network traffic for abnormal or malformed RDP camera device enumerator channel messages, especially those with unusually long or unterminated DeviceName or VirtualChannelName fields.

Since the vulnerability is triggered by malformed RDP messages, you can detect attempts by capturing and analyzing RDP traffic on port 3389 using tools like Wireshark or tcpdump, looking for packets related to the rdpecam channel.

No specific detection commands are provided in the available resources.

Mitigation Strategies

The primary mitigation step is to upgrade FreeRDP server implementations to version 3.28.0 or later, where the vulnerability has been fixed.

If upgrading immediately is not possible, consider disabling the MS-RDPECAM camera device enumerator channel to prevent processing of the vulnerable code paths.

Additionally, restricting access to the RDP server to trusted clients and enabling authentication before opening dynamic virtual channels can reduce the risk of exploitation.

Compliance Impact

The provided information does not specify any direct impact of CVE-2026-57157 on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57157. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart