# CVE-2025-68118: Potential Heap Out-of-Bounds Read in freerdp\_certificate\_data\_hash\_ via Unsafe \_snprintf Usage

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-17 · Modified: 2025-12-18
- Aliases: UBUNTU-CVE-2025-68118, CGA-9p92-72pp-7cvr, CGA-cg94-4wwp-c957, CGA-cwc4-645x-mrf2, CGA-ff2j-f4v2-83wx
- Record: https://cvemate.com/vulnerability/CVE-2025-68118 · JSON: https://cvemate.com/vulnerability/CVE-2025-68118/json

## Description

```text
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.20.0, a vulnerability exists in FreeRDP’s certificate handling code on Windows platforms. The function `freerdp_certificate_data_hash_ uses` the Microsoft-specific `_snprintf` function to format certificate cache filenames without guaranteeing NUL termination when truncation occurs. According to Microsoft documentation, `_snprintf` does not append a terminating NUL byte if the formatted output exceeds the destination buffer size. If an attacker controls the hostname value (for example via server redirection or a crafted .rdp file), the resulting filename buffer may not be NUL-terminated. Subsequent string operations performed on this buffer may read beyond the allocated memory region, resulting in a heap-based out-of-bounds read. In default configurations, the connection is typically terminated before sensitive data can be meaningfully exposed, but unintended memory read or a client crash may still occur under certain conditions. Version 3.20.0 has a patch for the issue.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.262%, percentile 19.141%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard freerdp-dev (Chainguard): All versions (No fix recorded)
- chainguard freerdp-libs (Chainguard): All versions (No fix recorded)
- wolfi freerdp-dev (Wolfi): All versions (No fix recorded)
- wolfi freerdp-libs (Wolfi): All versions (No fix recorded)
- ubuntu freerdp (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp2 (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp3 (Ubuntu): All versions (No fix recorded)
- freerdp freerdp: \< 3.20.0

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-h78c-5cjx-jw6x>
- <https://github.com/FreeRDP/FreeRDP/commit/a0b21f992a9de1de2468fc9e600aa2b7a4066307>
- <https://ubuntu.com/security/CVE-2025-68118>
- <https://www.cve.org/CVERecord?id=CVE-2025-68118>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68118.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68118>

---

Data as of 2026-12-06T06:55:01.297Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
