CVE-2026-13757
Awaiting Analysis Awaiting Analysis - Queue

Stack Overflow in p11-kit RPC Message Parsing

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

Publication date: 2026-06-29

Last updated on: 2026-06-29

Assigner: Red Hat, Inc.

Description

A flaw was found in p11-kit. The RPC message attribute parsing functions p11_rpc_message_get_attribute() and p11_rpc_message_get_attribute_array_value() form a mutually-recursive call chain with no recursion depth limit when processing nested CKA_WRAP_TEMPLATE, CKA_UNWRAP_TEMPLATE, and CKA_DERIVE_TEMPLATE attributes. An unauthenticated attacker with local access to the p11-kit RPC Unix domain socket can send a specially crafted request with deeply nested template attributes, causing stack exhaustion and crashing the p11-kit server process and its dependent services.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-29
Last Modified
2026-06-29
Generated
2026-06-30
AI Q&A
2026-06-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-674 The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Impact Analysis

Exploitation of this vulnerability results in a denial of service by crashing the p11-kit server process through stack exhaustion caused by unbounded recursion.

Since p11-kit is used by various dependent applications such as SSH agents, VPN clients, and web browsers for PKCS#11 module management, these services can also be disrupted, potentially impacting system security and availability.

The attacker does not need authentication beyond local access to the Unix domain socket, making it a risk for local users or processes on the same machine.

Executive Summary

This vulnerability exists in p11-kit, specifically in the RPC message attribute parsing functions p11_rpc_message_get_attribute() and p11_rpc_message_get_attribute_array_value(). These functions call each other recursively without any limit on recursion depth when processing certain nested attributes such as CKA_WRAP_TEMPLATE, CKA_UNWRAP_TEMPLATE, and CKA_DERIVE_TEMPLATE.

An attacker with local access to the p11-kit RPC Unix domain socket can send a specially crafted request containing deeply nested template attributes. Because there is no recursion depth limit, this causes stack exhaustion, leading to a crash of the p11-kit server process and any dependent services.

Detection Guidance

This vulnerability can be detected by monitoring the p11-kit server process for crashes or abnormal termination signals such as SIGSEGV or SIGBUS, which indicate stack exhaustion caused by deeply nested RPC attribute parsing.

Since the exploit involves sending specially crafted requests with deeply nested template attributes via the p11-kit RPC Unix domain socket, detection can involve checking for unusual or large C_CreateObject requests targeting this socket.

Suggested commands to help detect potential exploitation attempts include:

  • Use system logs to check for p11-kit crashes: `journalctl -u p11-kit` or `dmesg | grep p11-kit`
  • Monitor Unix domain socket activity for p11-kit (commonly located in /run or /var/run) using tools like `ss -xl | grep p11-kit` or `lsof -U | grep p11-kit`
  • Trace or log RPC calls to the p11-kit socket to identify unusually large or deeply nested attribute requests, possibly using `strace` or custom socket monitoring scripts.
Mitigation Strategies

Immediate mitigation steps include restricting access to the p11-kit RPC Unix domain socket to trusted users only, as exploitation requires local access to this socket.

Additionally, monitor the p11-kit process for crashes and restart it if necessary to maintain service availability.

Applying any available patches or updates from the vendor that address this vulnerability is critical once they are released.

As a temporary measure, consider limiting or disabling services that depend on p11-kit if they are not essential, to reduce the attack surface.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability 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-13757. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart