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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| JONASBN | Crypt::OpenSSL::PKCS12 | ≤ 1.94 | — |
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.95-1 | — |
| Debian 13 | libcrypt-openssl-pkcs12-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libcrypt-openssl-pkcs12-perl | No fix yet | — |
| 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 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libcrypt-openssl-pkcs12-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libcrypt-openssl-pkcs12-perl | No fix yet | — |