Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI 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-29361

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

CVE-2020-29361 is a buffer overflow flaw in P11-kit versions 0.21.1 through 0.23.21 caused by integer overflows in array allocations. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-29361 Overview

An integer overflow vulnerability was discovered in p11-kit versions 0.21.1 through 0.23.21. Multiple integer overflows exist in the array allocations within the p11-kit library and the p11-kit list command. The vulnerability occurs because overflow checks are missing before calling realloc or calloc memory allocation functions. This flaw can be exploited remotely to cause denial of service conditions affecting systems that rely on p11-kit for PKCS#11 module management.

Critical Impact

Remote attackers can trigger integer overflows in memory allocation routines, potentially causing application crashes and denial of service on systems using p11-kit for cryptographic token management.

Affected Products

  • p11-kit versions 0.21.1 through 0.23.21
  • Debian Linux 9.0
  • Debian Linux 10.0

Discovery Timeline

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

Technical Details for CVE-2020-29361

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The p11-kit library, which provides a way to load and enumerate PKCS#11 modules, contains multiple locations where array allocations are performed without proper overflow validation. When processing module lists or performing array operations, the library calculates buffer sizes by multiplying element counts with element sizes. Without proper bounds checking, these calculations can overflow, resulting in undersized buffer allocations.

When an attacker can influence the input that determines array sizes, they can craft inputs that cause the multiplication to wrap around, leading to a much smaller allocation than expected. Subsequent operations then write beyond the allocated buffer boundaries, causing memory corruption and application crashes.

Root Cause

The root cause is missing integer overflow validation in array allocation code paths within the p11-kit library. Specifically, when the library performs calculations like count * sizeof(element) before calling realloc or calloc, it fails to verify that the multiplication result does not exceed the maximum representable value. This allows attackers to trigger wraparound conditions where the resulting allocation size is significantly smaller than required.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can send specially crafted data to applications using the p11-kit library, triggering the integer overflow condition in memory allocation routines. The attack primarily leads to denial of service through application crashes, as the resulting heap corruption disrupts normal memory management operations.

The exploitation process involves supplying large values that, when multiplied, overflow to produce small allocation sizes. When the application attempts to populate these undersized buffers with the expected amount of data, heap corruption occurs, leading to crashes or potentially more severe memory safety violations.

Detection Methods for CVE-2020-29361

Indicators of Compromise

  • Unexpected crashes in applications using p11-kit library with heap corruption errors
  • Segmentation faults or memory access violations in processes linked against libp11-kit
  • Abnormal memory allocation patterns in system logs for PKCS#11-related services
  • Core dumps indicating memory corruption in p11-kit library functions

Detection Strategies

  • Monitor for crash reports in applications that link against p11-kit, particularly those involving heap corruption
  • Implement runtime memory sanitizers (ASan, MSan) in development and testing environments to detect overflow conditions
  • Deploy endpoint detection solutions capable of identifying memory corruption exploitation attempts
  • Review system logs for unusual patterns in applications interfacing with PKCS#11 modules

Monitoring Recommendations

  • Enable detailed logging for applications using p11-kit to capture allocation-related errors
  • Configure system monitors to alert on repeated application crashes involving p11-kit
  • Deploy intrusion detection signatures for unusual PKCS#11 module enumeration patterns
  • Monitor network traffic for anomalous data volumes targeting services that use p11-kit

How to Mitigate CVE-2020-29361

Immediate Actions Required

  • Update p11-kit to version 0.23.22 or later, which includes fixes for the integer overflow vulnerabilities
  • Apply vendor-specific patches for affected Linux distributions (Debian DSA-4822)
  • Restart applications and services that link against p11-kit after applying updates
  • Prioritize patching on systems where p11-kit is exposed to untrusted network input

Patch Information

The p11-kit project has released security updates addressing this vulnerability. Refer to the GitHub p11-kit Releases page for the latest patched versions. The GitHub Security Advisory GHSA-q4r3-hm6m-mvc2 provides detailed information about the vulnerability and remediation.

For Debian systems, security updates are available through Debian Security Advisory DSA-4822 and the Debian LTS Announcement.

Workarounds

  • Limit network exposure of services using p11-kit to trusted networks only
  • Implement input validation at the application level before passing data to p11-kit functions
  • Consider using application sandboxing to limit the impact of potential exploitation
  • Deploy network-level filtering to restrict access to services utilizing PKCS#11 functionality
bash
# Example: Update p11-kit on Debian-based systems
sudo apt-get update
sudo apt-get install --only-upgrade p11-kit libp11-kit0

# Verify installed version is 0.23.22 or later
dpkg -l | grep p11-kit

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.24%

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

  • GitHub Security Advisory GHSA-q4r3-hm6m-mvc2

  • Apache Bookkeeper Issue Thread

  • Apache Bookkeeper Issue Thread

  • Debian LTS Announcement

  • Debian Security Advisory DSA-4822
  • Related CVEs
  • CVE-2020-29362: 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