The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-29362

CVE-2020-29362: P11-kit Buffer Overflow Vulnerability

CVE-2020-29362 is a heap-based buffer over-read flaw in P11-kit that affects the RPC protocol between server and client. This vulnerability allows reading up to 4 bytes past heap allocation. Explore technical details and fixes.

Published: March 4, 2026

CVE-2020-29362 Overview

A heap-based buffer over-read vulnerability has been discovered in p11-kit versions 0.21.1 through 0.23.21. The vulnerability exists in the RPC protocol used by the p11-kit server/remote commands and the client library. When a remote entity supplies a byte array through a serialized PKCS#11 function call, the receiving entity may allow the reading of up to 4 bytes of memory past the heap allocation, potentially leading to information disclosure.

Critical Impact

This vulnerability enables attackers to read up to 4 bytes of memory beyond the intended heap allocation through malicious RPC communications, potentially exposing sensitive information from adjacent memory regions.

Affected Products

  • p11-kit versions 0.21.1 through 0.23.21
  • Systems using p11-kit server/remote commands
  • Applications utilizing the p11-kit client library for PKCS#11 operations

Discovery Timeline

  • 2020-12-16 - CVE-2020-29362 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-29362

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-bounds Read). The flaw resides in the RPC protocol implementation within p11-kit, which is a library that provides a standard configuration setup for PKCS#11 modules. PKCS#11 is a public-key cryptography standard that defines the API for interacting with cryptographic tokens such as smart cards and hardware security modules (HSMs).

The vulnerability occurs during the deserialization of byte arrays transmitted through the RPC protocol. When a remote entity sends a specially crafted byte array as part of a serialized PKCS#11 function call, insufficient bounds checking allows the receiving entity to read beyond the allocated heap buffer by up to 4 bytes. This type of out-of-bounds read can leak sensitive information from adjacent memory regions.

Root Cause

The root cause of this vulnerability is insufficient bounds validation in the RPC protocol handler when processing incoming byte arrays. The code fails to properly verify that the requested read operation stays within the boundaries of the allocated heap buffer, resulting in a heap-based buffer over-read condition. This is a common memory safety issue in C/C++ code where array bounds are not automatically checked.

Attack Vector

The attack is conducted over the network, targeting the RPC protocol used for communication between p11-kit clients and servers. An attacker can exploit this vulnerability by:

  1. Establishing a connection to a p11-kit server or interacting with a client library
  2. Sending a maliciously crafted serialized PKCS#11 function call containing a specially constructed byte array
  3. Triggering the vulnerable code path that reads beyond the heap allocation boundary
  4. Potentially extracting sensitive information from adjacent memory regions

The vulnerability exploits the trust relationship in the RPC communication channel, where the receiving entity does not adequately validate the boundaries of incoming data before processing.

Detection Methods for CVE-2020-29362

Indicators of Compromise

  • Unusual memory access patterns in p11-kit processes
  • Unexpected RPC traffic to p11-kit services with malformed byte array parameters
  • Application crashes or abnormal behavior in services using p11-kit
  • Memory dump artifacts showing out-of-bounds read attempts

Detection Strategies

  • Monitor p11-kit service logs for unusual RPC communication patterns
  • Implement memory sanitization tools (AddressSanitizer) in development and testing environments to detect out-of-bounds reads
  • Deploy network intrusion detection rules to identify malformed PKCS#11 RPC traffic
  • Use runtime application self-protection (RASP) solutions to detect memory access violations

Monitoring Recommendations

  • Enable verbose logging for p11-kit services to capture detailed RPC transaction information
  • Monitor system memory usage for anomalies that may indicate exploitation attempts
  • Implement file integrity monitoring on p11-kit binaries and configuration files
  • Review security logs for patterns consistent with information disclosure attacks

How to Mitigate CVE-2020-29362

Immediate Actions Required

  • Update p11-kit to version 0.23.22 or later immediately
  • Review network access controls to limit exposure of p11-kit RPC services
  • Implement network segmentation to isolate systems running vulnerable p11-kit versions
  • Audit systems to identify all instances of affected p11-kit versions

Patch Information

Security patches are available for this vulnerability. The p11-kit project has released version 0.23.22 which addresses this heap-based buffer over-read issue. For detailed release information, see the GitHub p11-kit Releases page.

Additional security advisories have been issued:

  • GitHub Security Advisory GHSA-5wpq-43j2-6qwc
  • Debian Security Advisory DSA-4822
  • Debian LTS Announcement January 2021

Workarounds

  • Restrict network access to p11-kit RPC services using firewall rules
  • Disable remote p11-kit functionality if not required for operations
  • Implement network-level access controls to limit RPC communication to trusted hosts only
  • Consider using Unix domain sockets instead of network sockets for local-only deployments
bash
# Restrict p11-kit RPC service access via iptables
# Allow only trusted hosts to communicate with p11-kit services
iptables -A INPUT -p tcp --dport 5656 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 5656 -j DROP

# Verify p11-kit version to ensure patched version is installed
pkg-config --modversion p11-kit-1 || p11-kit --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechP11 Kit

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-125
  • Technical References
  • GitHub p11-kit Releases

  • GitHub Security Advisory GHSA-5wpq-43j2-6qwc

  • Debian LTS Announcement January 2021

  • Debian Security Advisory DSA-4822
  • Related CVEs
  • CVE-2020-29361: P11-kit Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English