Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-9265 EUVD-2026-38103GHSA-597h-8vxx-6jqw

Crypt::OpenSSL::PKCS12 versions before 1.96 for Perl permits a heap OOB read in print_attribute UTF8STRING path

Published Jun 20, 2026 · Updated Jun 22, 2026 · Assigned by CPANSec

Description

Crypt::OpenSSL::PKCS12 versions before 1.96 for Perl permits a heap OOB read in print_attribute UTF8STRING path.

print_attribute() copies a UTF8STRING ASN.1 attribute value into a heap buffer sized exactly to its declared length via strncpy, leaving no NUL terminator. Downstream callers run strlen() on the result and pass the inflated length to newSVpvn(), copying attacker-influenced adjacent heap bytes into a Perl scalar.

Affected products

VendorProductAffectedFixed
JONASBN Crypt::OpenSSL::PKCS12 < 1.96 1.96

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcrypt-openssl-pkcs12-perl 1.96-1 —
Debian 13 libcrypt-openssl-pkcs12-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 25.10 libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 24.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 20.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 18.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —

References