CVE-2026-109940

FreeRDP 3.0.0-beta1 before 3.32.0 Stack Buffer Overflow via PKCS#11 Key Name

Published Oct 13, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
FreeRDP 3.0.0-beta1 before 3.32.0 on Unix builds with PKCS#11 support has a stack-based buffer overflow in wprintKeyName() in WinPR's NCrypt PKCS#11 provider. It hex-encodes a key's CKA_ID, which can be up to 64 bytes, into a fixed 128-byte stack buffer. An attacker supplying a malicious PKCS#11 token or module whose key and matching certificate use a 55- to 64-byte CKA_ID can overflow the client's stack during key enumeration, causing a crash.

Analysis

AI-generated

Technical impact

The vulnerability is a stack-based buffer overflow in the WinPR PKCS#11 provider function wprintKeyName. It occurs when the function hex-encodes a key's CKA_ID, which can be up to 64 bytes, into a fixed 128‑byte buffer on the stack. If an attacker supplies a malicious PKCS#11 token or module whose key and certificate use a 55‑ to 64‑byte CKA_ID, the overflow corrupts the stack and causes the FreeRDP client to crash. The resulting impact is service disruption, providing a denial‑of‑service condition. The vulnerability does not, by itself, allow an attacker to execute arbitrary code or exfiltrate data, so confidentiality and integrity are not directly affected.

Affected Systems

Affected systems are FreeRDP installations built for Unix with PKCS#11 support, ranging from the initial 3.0.0‑beta1 release through all versions prior to 3.32.0. The vendor FreeRDP is the only product listed. No specific operating systems are mentioned, but the issue applies to any Unix build that enables the PKCS#11 provider.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity primarily driven by the Denial‑of‑Service impact. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting no widespread exploitation evidence at this time. Exploitation would require the attacker to supply a malicious PKCS#11 token or module that the client enumerates; if the client uses local tokens this can be considered a local or user‑specific threat, while a remotely delivered token could be used in a remote exploitation scenario. Given the lack of public exploit data, the risk is primarily availability loss in environments that use large CKA_IDs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreeRDP to version 3.32.0 or later, where the vulnerable code is removed.
  • If an immediate upgrade is not possible, disable or remove PKCS#11 support from the FreeRDP build to prevent the client from loading the vulnerable provider.
  • If you must use PKCS#11 tokens, ensure that all key identifiers (CKA_ID) are 55 bytes or fewer, or avoid using tokens with identifiers that exceed that length.

Generated by OpenCVE AI on October 13, 2026 at 14:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FreeRDP 3.0.0-beta1 before 3.32.0 on Unix builds with PKCS#11 support has a stack-based buffer overflow in wprintKeyName() in WinPR's NCrypt PKCS#11 provider. It hex-encodes a key's CKA_ID, which can be up to 64 bytes, into a fixed 128-byte stack buffer. An attacker supplying a malicious PKCS#11 token or module whose key and matching certificate use a 55- to 64-byte CKA_ID can overflow the client's stack during key enumeration, causing a crash.
Title FreeRDP 3.0.0-beta1 before 3.32.0 Stack Buffer Overflow via PKCS#11 Key Name
First Time appeared Freerdp
Freerdp freerdp
Weaknesses CWE-121
CPEs cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
Vendors & Products Freerdp
Freerdp freerdp
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 1:56 PM
Reserved
Oct 13, 2026, 11:24 AM
Status
Analyzed
Published
Oct 13, 2026, 2:17 PM
Modified
Oct 26, 2026, 8:36 PM