CVE-2026-13757: p11-kit RPC Stack Exhaustion Denial-of-Service
p11-kit, a library that manages cryptographic objects like keys and certificates, contains a flaw in how it processes template attributes in RPC messages. An attacker with local access to the p11-kit server can craft a malicious request with deeply nested template attributes that causes the server to exhaust its stack and crash. This denial-of-service attack requires local access and cannot lead to data theft or corruption, but it can disrupt services that depend on p11-kit for cryptographic operations.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.2 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-674
- Affected products
- 8 configuration(s)
- Published / Modified
- 2026-06-29 / 2026-08-03
NVD description (verbatim)
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.
7 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in the RPC message parsing functions p11_rpc_message_get_attribute() and p11_rpc_message_get_attribute_array_value() within p11-kit. These functions form a mutually-recursive call chain when processing CKA_WRAP_TEMPLATE, CKA_UNWRAP_TEMPLATE, and CKA_DERIVE_TEMPLATE attributes. The functions lack recursion depth limits, allowing an attacker to send specially crafted RPC requests with nested template attributes at depths that exhaust the stack. The resulting stack overflow crashes the p11-kit server process. This is classified as a CWE-674 (Uncontrolled Recursion) flaw.
Business impact
Services dependent on p11-kit for cryptographic operations—including OpenShift Container Platform, Enterprise Linux systems, and applications using p11-kit for key management—become unavailable when the p11-kit server is crashed. In containerized and production environments, repeated denial-of-service attacks could cause service interruptions and require manual restarts. The impact is limited to availability; confidentiality and integrity of cryptographic material remain unaffected. Organizations running p11-kit should assess the criticality of their use cases and ensure recovery procedures are in place.
Affected systems
This vulnerability affects p11-kit and products that integrate it, including Red Hat Enterprise Linux (all recent supported versions), Red Hat OpenShift Container Platform, and Red Hat Hardened Container Images. Any system or service that exposes the p11-kit RPC Unix domain socket is at risk if it permits local user access or if the socket permissions are misconfigured.
Exploitability
Exploitation requires local access to the p11-kit RPC Unix domain socket, meaning the attacker must have a user account on the affected system or container. No authentication is required once local access is achieved. The attack is trivial to execute—sending a crafted nested-attribute RPC message requires no special privileges or tools beyond standard socket communication. However, the local-access requirement significantly reduces the attack surface for internet-facing systems. Containerized deployments with multi-tenant or untrusted user bases face higher risk.
Remediation
Apply security updates from your vendor as soon as they become available. Red Hat users should monitor their respective Enterprise Linux, OpenShift, and container image advisories for patch releases that address CVE-2026-13757. Ensure p11-kit RPC Unix domain socket permissions restrict access to trusted users only. Review and harden local access controls to p11-kit sockets, particularly in multi-user or containerized environments. Implement service monitoring and auto-restart mechanisms to detect and recover from p11-kit crashes.
Patch guidance
Monitor Red Hat Security Advisories and the p11-kit project's official release channels for patched versions. When patches are released, test them in a non-production environment before deployment. Prioritize patching systems that expose p11-kit sockets to multiple local users or untrusted contexts. Container image updates should be pulled from official repositories and rebuilt into your deployment pipelines. Verify patch application by confirming the RPC parsing functions implement recursion depth checks.
Detection guidance
Monitor for unexpected p11-kit process crashes, particularly if correlated with anomalous RPC traffic patterns. Log local socket access attempts to p11-kit sockets and flag failed RPC calls with deeply nested attributes. Implement process-level monitoring to detect repeated crashes and restarts of p11-kit. Host-based intrusion detection may flag suspicious RPC message patterns, though signature-based detection is challenging without vendor-specific rules. Collect and review dmesg or kernel logs for stack overflow messages related to p11-kit.
Why prioritize this
Although the CVSS score is medium (6.2) and exploitation requires local access, the flaw affects foundational cryptographic infrastructure used across Red Hat Enterprise Linux and OpenShift ecosystems. A successful attack causes service unavailability rather than data breach, but in production environments with strict uptime requirements, even local denial-of-service can be operationally significant. Prioritize patching based on the sensitivity of local user populations and the criticality of dependent services.
Risk score, explained
The CVSS 3.1 score of 6.2 (MEDIUM) reflects the attack vector (local), no privileges required, and high impact on availability (AH). The attack does not compromise confidentiality or integrity, and the local-access requirement prevents remote exploitation. The score appropriately balances the severity of a denial-of-service condition in foundational infrastructure against the practical barrier of needing valid local access.
Frequently asked questions
Can this vulnerability be exploited remotely over the network?
No. Exploitation requires local access to the p11-kit RPC Unix domain socket. An attacker must have a user account on the affected system or container. Remote network attacks are not possible unless the socket is incorrectly exposed or proxied over the network, which would be a misconfiguration rather than an intrinsic flaw.
Does this flaw compromise cryptographic keys or data encrypted with p11-kit?
No. The vulnerability causes a denial-of-service crash and does not lead to disclosure or corruption of cryptographic material. Keys remain secure; the attack only disrupts availability of p11-kit services.
How should I prioritize this patch in a multi-tier environment?
Prioritize based on local user trust and service criticality. Systems with untrusted local users or those running multi-tenant containerized workloads should be patched first. Systems with strict local access controls and services with high uptime requirements should follow. Internet-facing servers with minimal local user access may be deprioritized relative to internal infrastructure.
Are there workarounds if a patch is not yet available?
Restrict file permissions on the p11-kit RPC socket to only trusted users. Monitor local access and p11-kit process health. Implement auto-restart policies so crashes do not cause prolonged service outages. These mitigations reduce exposure but do not eliminate the vulnerability; patching is the definitive remediation.
This analysis is based on published vulnerability data as of the date provided and represents SEC.co's interpretation of the threat. Actual exploitability and impact may vary depending on system configuration, local security controls, and deployment context. Organizations should verify patch availability and compatibility with their specific product versions through official vendor advisories before deployment. This intelligence does not constitute legal or professional security advice; consult your security team and vendor resources for guidance tailored to your infrastructure. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2025-7005MEDIUMAvast/AVG/Norton Antivirus Denial-of-Service via Malformed PE File
- CVE-2025-7010MEDIUMAvast Antivirus Stack Overflow DoS Vulnerability – VPS Definition Patch Required
- CVE-2025-71382MEDIUMMuPDF EPUB Denial of Service via Uncontrolled CSS Recursion
- CVE-2026-14803MEDIUMMojo::JSON Memory Exhaustion via Unbounded Recursion
- CVE-2026-40989MEDIUMSpring Cloud Function Infinite Recursion OOM Vulnerability
- CVE-2026-44740MEDIUMBilly Go Library Denial-of-Service via Input Validation Flaws
- CVE-2026-45664MEDIUMImageMagick MNG Coder Resource Limit Bypass (CVSS 5.3)
- CVE-2026-46557MEDIUMImageMagick Stack Overflow in fx Operation – Patch Guide