Description
Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl have out-of-bounds (OOB) write flaws.
When parsing a PKCS12 file, with a >= 1 GiB OCTET STRING (or BIT STRING) attribute on a SAFEBAG, via info() or info_as_hash(), a heap out-of-bounds write would be triggered with remote-code-execution potential (RCE) due to a signed integer overflow in the size calculation passed to Renew().
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 | — |
References
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md release-notes
- https://github.com/dsully/perl-crypt-openssl-pkcs12/issues/55 issue-tracking
- https://github.com/dsully/perl-crypt-openssl-pkcs12/issues/56 issue-tracking
- https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/b9d0469c6d8f5b5c6c2a45a3d0647a532b749397.patch patch