Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Perl service parsing PKCS12 input
-
DeliveryCraft PKCS12 with >=1GiB OCTET STRING SAFEBAG attribute
-
ExploitDeliver file to vulnerable endpoint
-
InstallApplication calls info()/info_as_hash()
-
C2Integer overflow yields undersized heap allocation
-
ExecuteHeap OOB write corrupts adjacent structures
-
ImpactAchieve code execution in Perl process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) a Perl application that loads attacker-influenced PKCS12 files using Crypt::OpenSSL::PKCS12 <= 1.94, (2) that application invoking the info() or info_as_hash() method on the parsed object - these are the only two vulnerable entry points named in the description - and (3) the malicious PKCS12 file carrying an OCTET STRING or BIT STRING attribute on a SAFEBAG with length >= 1 GiB. Limiting factors: the >= 1 GiB payload size makes drive-by delivery impractical for bandwidth-constrained or size-capped upload endpoints, RCE is described as 'potential' rather than demonstrated, the application must reach the specific info()/info_as_hash() API rather than other parsing methods, and the process must have sufficient virtual address space to allocate the oversized buffer needed to trigger the overflow. |
| Impact | The CVSS 9.8 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H) reflects a worst-case parser RCE assumption, but real-world exposure is much narrower than the headline number suggests: exploitation requires an application to load an attacker-supplied PKCS12 file and then call info() or info_as_hash() on it, and the malicious file must carry a >= 1 GiB attribute - meaning attackers must deliver an oversized blob through whatever channel the Perl application accepts keystores. No EPSS score, KEV listing, or SSVC decision is provided in the input. RCE is described by the reporter as having 'potential' rather than demonstrated, and the visible patch is a length sanity check rather than evidence of an in-the-wild exploit; treat this as a high-severity supply-chain/parser bug that warrants prompt patching wherever the module ingests untrusted PKCS12 input, but de-prioritize relative to KEV-listed issues without further exploitation signals. |
| Exploit ScenarioDerived | An attacker uploads or otherwise delivers a crafted PKCS12 file containing a SAFEBAG with an OCTET STRING attribute exceeding 1 GiB to a Perl-based service (for example, a certificate management portal, CI signing pipeline, or mail-handling tool) that parses inbound keystores via Crypt::OpenSSL::PKCS12. When the application invokes info() or info_as_hash(), the integer overflow in print_attribute() produces an undersized heap allocation and subsequent OOB write, which a skilled attacker could shape into arbitrary code execution in the context of the Perl process. No public exploit identified at time of analysis; only the maintainer's patch and bug reports (issues #55/#56) are available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Heap out-of-bounds write in the Crypt::OpenSSL::PKCS12 Perl module (versions up to and including 1.94) allows attackers who can supply a malicious PKCS12 file processed via info() or info_as_hash() to corrupt heap memory and potentially achieve remote code execution. The flaw stems from an integer overflow when an OCTET STRING or BIT STRING attribute on a SAFEBAG is >= 1 GiB in size, causing an undersized allocation followed by an OOB write. No public exploit identified at time of analysis, but the upstream patch and oss-security disclosure are public.
RemediationAI
Vendor-released patch: upgrade Crypt::OpenSSL::PKCS12 to 1.95 or later from CPAN (cpanm Crypt::OpenSSL::PKCS12), which adds INT_MAX/4 bounds checks on OCTET STRING and BIT STRING attribute lengths before the Renew() call per commit b9d0469c6d8f5b5c6c2a45a3d0647a532b749397. Where immediate upgrade is not possible, avoid calling info() or info_as_hash() on PKCS12 files originating from untrusted sources, or pre-validate that input files are not pathologically large (a 1 GiB+ PKCS12 is extremely unusual in practice, so rejecting files above a few MB is a low-impact compensating control). Audit downstream Perl applications and packaged distributions (Linux distro perl-Crypt-OpenSSL-PKCS12 packages) for transitive use, and consult the oss-security disclosure at http://www.openwall.com/lists/oss-security/2026/05/17/5 and VulDB entry https://vuldb.com/vuln/364432 for additional context.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Crypt::OpenSSL::PKCS12 is a Perl XS binding around OpenSSL's PKCS#12 parsing routines, used to read keystore-style files containing certificates, private keys, and metadata attributes attached to SAFEBAG structures. The flaw is a classic CWE-787 (Out-of-bounds Write) caused by an unchecked integer multiplication in PKCS12.xs::print_attribute(): the code performed Renew(*attribute, av->value.octet_string->length * 4, char) (and the analogous BIT STRING branch) where length is a signed int. When length is >= ~1 GiB, the multiplication by 4 overflows INT_MAX, the allocator receives a wrapped/small size, and subsequent copies of the original (huge) string overflow the heap buffer. The fix in commit b9d04 (released as 1.95) adds explicit bounds checks against INT_MAX/4 and croaks before allocation.
Know when OpenSSL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) · only source for this CVE.
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Lifecycle Timeline
2DescriptionCVE.org
Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl have out of bound (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-OOB-WRITE would be triggered which could have Remote Code Execution (RCE) potential.
Executive ViewAI
The Crypt::OpenSSL::PKCS12 Perl module (versions ≤1.94) contains a critical heap memory corruption vulnerability that could enable remote code execution when processing specially crafted PKCS12 files. This impacts any system using this module for certificate processing, potentially compromising certificate validation, TLS/SSL operations, and authentication infrastructure. No vendor patch is currently available, requiring immediate mitigation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) implement strict input validation-reject PKCS12 files exceeding 1 GiB and validate structure before processing; (2) restrict file processing to authenticated, trusted sources only; (3) disable info() and info_as_hash() functions if not required; (4) implement memory protection monitoring and heap corruption detection in affected applications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri
The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se
The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas
The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a
The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly
A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig
EUVD-2026-30708
GHSA-3qmj-qw66-fwx8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB