Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow denial of service via NULL pointer dereference
JONASBN Crypt::OpenSSL::X509
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| JONASBN Crypt::OpenSSL::X509 |
| No fix yet |
Original description
Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow denial of service via NULL pointer dereference.
X509V3_EXT_d2i(ext) returns NULL when an extension's DER value fails to parse. basicC, ia5string, and auth_att dereference its result without a NULL check. keyid_data also dereferences akid->keyid, which is NULL for an empty AKI SEQUENCE (DER 30 00) even when the parse succeeds.
A caller invoking an affected helper on an extension from an untrusted certificate triggers a SIGSEGV that crashes the Perl process.
From the CVE record · CPANSec
References
- github.com/dsully/perl-crypt-openssl-x509/commit/4c1e2370556097c253ae27abe9e1097ea377fbd2.patchPatch
- metacpan.org/release/JONASBN/Crypt-OpenSSL-X509-2.1.3/source/Changes.mdRelease notes
- cpan.org/modules
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58101.json
- nvd.nist.gov/vuln/detail/CVE-2026-58101
- github.com/dsully/perl-crypt-openssl-x509