Impact
The vulnerability arises when Crypt::OpenSSL::PKCS12 processes a PKCS#12 file containing a BMPSTRING attribute of zero length. The library allocates a buffer of size zero, deallocates it, and leaves a NULL pointer. Subsequent string operations dereference this pointer, causing an immediate process crash via a null pointer dereference. The crash occurs within print_attribute, invoked by info_as_hash(). No code execution is afforded by this scenario; the effect is limited to instability and a denial of service.
Affected Systems
Products affected are Perl modules Crypt::OpenSSL::PKCS12 with versions earlier than 1.98, maintained by JONASBN. Any installation of these older versions that processes untrusted PKCS#12 files through the info_as_hash() routine is vulnerable.
Risk and Exploitability
The CVSS score is 7.5, the EPSS score is <1%, and the vulnerability is not listed in CISA KEV. Exploitation requires an attacker to supply a specially crafted PKCS#12 file to a Perl application that calls info_as_hash(). The impact is a crash of the application process, potentially leading to denial of service for users or downtime for services. Remote exploitation is plausible if the application is exposed to external input. While no known public exploits exist, the simplicity of the trigger makes the risk moderate to high for exposed services that process untrusted PKCS#12 files.
OpenCVE Enrichment