CVE-2026-17510: Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute

Published Aug 9, 2026
·
Updated

Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in printattribute via a zero length BMPSTRING attribute.

printattribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with Renew(attribute, length, char). A zero length attribute makes that a zero size reallocation, which Perl implements as a free returning NULL, so the buffer pointer becomes NULL, the following strncpy copies nothing, and the caller dereferences NULL in the strlen() it passes to newSVpvn(). A zero length BMPSTRING is even length, so the ASN.1 decoder accepts it and the value reaches this code. The UTF8STRING, OCTET STRING and BIT STRING arms size on length + 1 or length 4 + 1 and are unaffected.

Any caller that passes an untrusted PKCS#12 file to infoashash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.

Affected Software

1 affected component
Perl Crypt::OpenSSL::PKCS12<1.98

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Crypt::OpenSSL::PKCS12 to a version that resolves this vulnerability.

    Fixed in 1.98

Event History

Aug 9, 2026
CVE Published
via MITRE·01:21 AM
Data Sourced
via MITRE·01:21 AM
RemedyDescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-17510?

CVE-2026-17510 has a risk rating of 20, indicating a high severity level.

2

How do I fix CVE-2026-17510?

To fix CVE-2026-17510, upgrade to Crypt::OpenSSL::PKCS12 version 1.98 or later.

3

What component is affected by CVE-2026-17510?

CVE-2026-17510 affects the Perl module Crypt::OpenSSL::PKCS12 versions prior to 1.98.

4

What type of vulnerability is CVE-2026-17510?

CVE-2026-17510 is classified as a Null Pointer Dereference vulnerability.

5

What issue in print_attribute is caused by CVE-2026-17510?

CVE-2026-17510 allows a NULL pointer dereference in print_attribute due to handling a zero-length BMPSTRING attribute.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203