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.
Published: 2026-10-13
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

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.

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

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 yet.

History

Tue, 13 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 13 Oct 2026 13:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-13T13:56:15.434Z

Reserved: 2026-10-13T11:24:25.841Z

Link: CVE-2026-109940

cve-icon Vulnrichment

Updated: 2026-10-13T13:56:07.119Z

cve-icon NVD

Status : Received

Published: 2026-10-13T14:17:31.910

Modified: 2026-10-13T14:17:31.910

Link: CVE-2026-109940

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T15:00:15Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow