Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 63%

CVE-2026-8721: CWE-170 Improper Null Termination in JONASBN Crypt::OpenSSL::PKCS12

0
Critical
VulnerabilityCVE-2026-8721cvecve-2026-8721cwe-170
Published: 05/17/2026 (05/17/2026, 18:51:41 UTC)
Source: CVE Database V5
Vendor/Project: JONASBN
Product: Crypt::OpenSSL::PKCS12

Description

Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl improperly handle passwords containing embedded NULL bytes by truncating them at the first NULL character. This occurs because the password parameter is treated as a null-terminated C string, causing loss of entropy in binary or derived passwords without any warning. This vulnerability can lead to compromised confidentiality, integrity, and availability of cryptographic operations relying on these passwords.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/24/2026, 19:31:53 UTC

Technical Analysis

The vulnerability in Crypt::OpenSSL::PKCS12 (up to version 1.94) arises from improper null termination handling (CWE-170) in the password parameter processing. Passwords passed to PKCS12.xs are declared as char * and converted via Perl's default typemap to SvPV_nolen, which discards the Perl string length. Consequently, the underlying C code or OpenSSL calls strlen() on the password buffer, truncating it at the first NULL byte. This silent truncation reduces password entropy, particularly affecting binary, KDF-derived, or HMAC-derived passwords, potentially weakening cryptographic protections.

Potential Impact

This vulnerability can lead to significant security impacts including loss of confidentiality, integrity, and availability of cryptographic material protected by the affected module. Because passwords with embedded NULL bytes are truncated, attackers may exploit this to reduce the effective password strength, potentially enabling unauthorized access or cryptographic key compromise. The CVSS score of 9.8 reflects the critical nature of this issue with network attack vector, low attack complexity, no privileges required, and no user interaction needed.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are currently available. Until a patch is released, users should avoid using passwords containing embedded NULL bytes with Crypt::OpenSSL::PKCS12. Monitoring vendor communications for updates is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-05-16T01:07:36.063Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a0a11bfec166c07b0f3cced

Added to database: 05/17/2026, 19:06:39 UTC

Last enriched: 05/24/2026, 19:31:53 UTC

Last updated: 07/31/2026, 21:09:59 UTC

Views: 164

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses