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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libcrypt-openssl-pkcs12-perl | 1.96-1 | — |
| Debian 13 | libcrypt-openssl-pkcs12-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libcrypt-openssl-pkcs12-perl | No fix yet | — |