A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-8721

CVE-2026-8721: Perl PKCS12 Password Truncation Vulnerability

CVE-2026-8721 is a password truncation flaw in Crypt::OpenSSL::PKCS12 for Perl that silently drops password bytes after embedded NULLs, reducing entropy. This article covers technical details, affected versions, and fixes.

Published: May 21, 2026

CVE-2026-8721 Overview

CVE-2026-8721 is a password truncation vulnerability in the Crypt::OpenSSL::PKCS12 Perl module through version 1.94. The module silently truncates passwords containing embedded NULL bytes when processing PKCS#12 files. Password parameters in PKCS12.xs are declared as char *, which Perl's default typemap routes through SvPV_nolen, discarding the actual Perl string length. Downstream C code or OpenSSL then calls strlen() on the buffer, dropping every byte at or after the first NULL. Binary passwords, KDF-derived secrets, and HMAC-derived passwords lose entropy without any warning, weakening certificate protection [CWE-170].

Critical Impact

Passwords with embedded NULL bytes are silently truncated, drastically reducing entropy and exposing PKCS#12-protected keys to brute-force attacks.

Affected Products

  • Crypt::OpenSSL::PKCS12 for Perl, versions through 1.94
  • Perl applications that pass binary or derived passwords to PKCS#12 operations
  • Downstream tooling that wraps Crypt::OpenSSL::PKCS12 for certificate handling

Discovery Timeline

  • 2026-05-17 - CVE-2026-8721 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-8721

Vulnerability Analysis

The Crypt::OpenSSL::PKCS12 module exposes XS bindings that accept passwords from Perl and forward them to OpenSSL's PKCS#12 routines. Perl strings are length-prefixed and can legitimately contain NULL bytes, particularly when callers derive passwords from key derivation functions (KDFs), HMACs, or other binary sources. The vulnerability arises because the XS layer treats the Perl scalar as a C string instead of a length-bounded buffer.

When a caller supplies a 32-byte HMAC-derived password whose third byte is 0x00, the module effectively uses only the first two bytes. The PKCS#12 file is encrypted and integrity-protected with this truncated secret, but decryption succeeds against the same truncated value, so the defect remains invisible during functional testing.

Root Cause

The password arguments in PKCS12.xs are declared as char *. Perl's default typemap converts these scalars using SvPV_nolen, which returns a pointer to the string buffer but discards the explicit Perl-side length. Subsequent calls inside the C glue or within OpenSSL invoke strlen() to measure the password, terminating at the first NULL byte. Per [CWE-170: Improper Null Termination], the mismatch between Perl's counted-string semantics and C's NULL-terminated semantics silently corrupts the input.

Attack Vector

An attacker who obtains a PKCS#12 file produced with a binary password can mount an offline brute-force or dictionary attack against the truncated key space. A 256-bit KDF output containing an early NULL byte may collapse to only a handful of effective bytes of entropy. Because no warning is emitted, defenders cannot detect that their certificates are protected by an effectively short password until the keys are compromised.

The vulnerability is exploited through possession of the resulting PKCS#12 artifact rather than direct interaction with the module, so any system that distributes, backs up, or stores PKCS#12 bundles generated with binary passwords is exposed.

Detection Methods for CVE-2026-8721

Indicators of Compromise

  • Presence of Crypt-OpenSSL-PKCS12 versions at or below 1.94 in Perl module inventories or cpanfile.snapshot files.
  • PKCS#12 files generated by Perl tooling that accept binary, KDF-derived, or HMAC-derived passwords.
  • Code paths that pass pack() output, Digest::SHA::hmac_sha256 results, or random byte strings as the password argument.

Detection Strategies

  • Audit Perl source for calls to Crypt::OpenSSL::PKCS12 methods new_from_string, create, and mac_ok that supply non-ASCII passwords.
  • Run static analysis to flag password arguments produced by binary-producing functions such as pack, random_bytes, hkdf, or HMAC routines.
  • Validate generated .p12 files by attempting decryption with the password truncated at the first NULL byte; success indicates the module silently dropped entropy.

Monitoring Recommendations

  • Track package manager events that install or upgrade Crypt-OpenSSL-PKCS12 across build hosts and production systems.
  • Log PKCS#12 generation operations along with the password source and a hash of the full intended password for after-the-fact correlation.
  • Alert on certificate stores or HSM imports where the originating PKCS#12 file was produced by a vulnerable module version.

How to Mitigate CVE-2026-8721

Immediate Actions Required

  • Upgrade Crypt::OpenSSL::PKCS12 to version 1.95 or later on all systems that use the module.
  • Re-issue or re-export any PKCS#12 bundles created with binary passwords using a patched module version.
  • Rotate private keys whose PKCS#12 containers were generated with KDF-derived or HMAC-derived passwords that may contain NULL bytes.

Patch Information

The maintainer released Crypt-OpenSSL-PKCS12 1.95 to address the truncation defect. Refer to the MetaCPAN Release Changes and the OpenWall OSS Security Announcement for vendor-confirmed details.

Workarounds

  • Restrict PKCS#12 passwords to printable ASCII strings without embedded NULL bytes until the module is upgraded.
  • Hex-encode or base64-encode binary password material before passing it to the module so the value contains no NULL bytes.
  • Wrap calls to the module in a pre-flight check that rejects any password containing \\x00 and raises an error to the caller.
bash
# Upgrade the module via cpanm and verify the installed version
cpanm Crypt::OpenSSL::PKCS12@1.95
perl -MCrypt::OpenSSL::PKCS12 -E 'say $Crypt::OpenSSL::PKCS12::VERSION'

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechOpenssl

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-170
  • Technical References
  • MetaCPAN Release Changes

  • OpenWall OSS Security Announcement
  • Related CVEs
  • CVE-2024-13176: ECDSA Timing Side-Channel Vulnerability

  • CVE-2026-31790: OpenSSL Information Disclosure Flaw

  • CVE-2026-2673: OpenSSL TLS 1.3 Key Exchange Vulnerability

  • CVE-2025-69418: OpenSSL OCB Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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