CVE-2025-68118CWE-125

CVE-2025-68118

Critical · published December 18, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
14.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky flaw in FreeRDP's certificate handling could let attackers toy with memory! Just imagine the chaos of a filename that’s not quite complete—it's like sending a package without putting your address on it! Think of it like trying to read a restaurant menu that's missing the last few letters of each dish. You might end up ordering something you didn't intend, or worse, you could get something entirely different! If an attacker has control over the hostname—say, through a crafty redirection—they could exploit this gap to read beyond the allocated memory. While sensitive data is usually safe since connections are often terminated prematurely, there’s still a risk of causing a client crash or unexpected behavior. That's definitely not the smooth experience users expect!

Put simply

Think of it like trying to read a restaurant menu that's missing the last few letters of each dish. You might end up ordering something you didn't intend, or worse, you could get something entirely different! This vulnerability in FreeRDP arises from the use of the `_snprintf` function, which fails to ensure that strings are NUL-terminated when they exceed buffer size. This oversight leads to potential heap-based out-of-bounds reads, creating a pathway for instability.

What to do

If an attacker has control over the hostname—say, through a crafty redirection—they could exploit this gap to read beyond the allocated memory. While sensitive data is usually safe since connections are often terminated prematurely, there’s still a risk of causing a client crash or unexpected behavior. That's definitely not the smooth experience users expect! To mitigate this issue, upgrade FreeRDP to version 3.20.0 or later. Additionally, review your configurations to ensure hostname values cannot be manipulated by attacks. Regularly check for updates to stay ahead of vulnerabilities! You've got this! Patch your systems, and you’ll be a security hero in no time! 🦸

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00244 · 14.8th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-12-18T03:16Z
Affected products (1)
ProductVersionsFixed in
freerdp/freerdp< 3.20.03.20.0
References (2)
EPSS history
Timeline
  • 17 DEC 22:01Z
    Potential Heap Out-of-Bounds Read in freerdp_certificate_data_hash_ via Unsafe _snprintf Usage
    cvelistv5