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…

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

0
Critical
VulnerabilityCVE-2026-8721cvecve-2026-8721cwe-170
Published: Sun May 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 truncates passwords with embedded NULLs. Password parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded. The C code (or OpenSSL internally) calls strlen() on the buffer. Any password byte at or after the first NULL is silently dropped. Binary / KDF-derived / HMAC-derived passwords lose entropy without any warnings.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/17/2026, 19:21:34 UTC

Technical Analysis

The vulnerability in Crypt::OpenSSL::PKCS12 (up to version 1.94) arises from improper null termination handling of password parameters. Passwords with embedded NULL bytes are truncated due to the use of strlen() on char * parameters, which discards any bytes after the first NULL. This leads to silent loss of entropy in passwords used for cryptographic operations, such as key derivation and HMAC, potentially weakening the security of the protected data. The issue stems from the interaction between Perl's typemap and C code, where the Perl string length is discarded and strlen() is used instead.

Potential Impact

Passwords containing embedded NULL bytes are truncated at the first NULL character, reducing their effective entropy. This silent truncation can weaken cryptographic protections relying on these passwords, such as key derivation functions and HMACs. However, there is no indication of known exploits in the wild. The vulnerability may reduce the strength of password-based protections but does not directly lead to remote code execution or privilege escalation based on the available data.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround has been documented at this time. Users should avoid using passwords with embedded NULL characters as a temporary mitigation until a patch or official guidance is provided.

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: 5/17/2026, 7:06:39 PM

Last enriched: 5/17/2026, 7:21:34 PM

Last updated: 5/19/2026, 10:52:14 AM

Views: 55

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