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.
Published: 2026-07-13
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The proximity of the bug lies in the NULL pointer dereference that occurs when Crypt::OpenSSL::X509 attempts to parse certain X.509 certificate extensions. When functions such as X509V3_EXT_d2i return NULL, the code immediately dereferences the result without performing checks. This behavior triggers a segmentation fault (SIGSEGV) that crashes the Perl interpreter, effectively denying service to any process that has loaded the affected extension.

Affected Systems

The vulnerability affects the Perl module Crypt::OpenSSL::X509 provided by vendor JONASBN. All releases prior to version 2.1.3 are affected. The flaw is exploitable whenever an application invokes the vulnerable helper functions on extensions originating from untrusted or malicious certificates.

Risk and Exploitability

With a CVSS score of 7.5, this vulnerability is considered high severity. The EPSS score is <1%, indicating a very low probability of exploitation, and it is not listed in the CISA KEV catalog. The likely attack vector is the delivery of a crafted certificate to an application that processes certificate extensions; the attacker may be local or remote depending on how the application receives certificates. When a vulnerable helper function is invoked with a malicious extension, the Perl process is terminated, requiring a restart or crash recovery.

Generated by OpenCVE AI on July 31, 2026 at 11:06 UTC.

Remediation

Vendor Solution

Upgrade to Crypt::OpenSSL::X509 2.1.3 or later, which NULL-checks each X509V3_EXT_d2i result and the optional keyid field before dereferencing.


OpenCVE Recommended Actions

  • Upgrade Crypt::OpenSSL::X509 to 2.1.3 or newer which adds NULL checks before dereferencing extensions.
  • If an upgrade cannot be performed immediately, replace or wrap the affected helper calls with custom logic that verifies the return value of X509V3_EXT_d2i and rejects or sanitizes extensions before dereferencing, especially for untrusted certificates.
  • Deploy a process supervision or crash-handling mechanism to restart the Perl application automatically so that availability is restored while the module is patched.

Generated by OpenCVE AI on July 31, 2026 at 11:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
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.
Title Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow denial of service via NULL pointer dereference
Weaknesses CWE-476
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-14T12:45:11.194Z

Reserved: 2026-06-29T06:35:04.717Z

Link: CVE-2026-58101

cve-icon Vulnrichment

Updated: 2026-07-14T12:44:58.448Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T11:15:05Z

Weaknesses