Skip to main content

Crypt::OpenSSL::PKCS12 EUVDEUVD-2026-30708

| CVE-2026-8507 CRITICAL
Out-of-bounds Write (CWE-787)
2026-05-17 9b29abf9-4ab0-4765-b253-1875cd9b441e GHSA-3qmj-qw66-fwx8
9.8
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify Perl service parsing PKCS12 input
  2. Delivery
    Craft PKCS12 with >=1GiB OCTET STRING SAFEBAG attribute
  3. Exploit
    Deliver file to vulnerable endpoint
  4. Install
    Application calls info()/info_as_hash()
  5. C2
    Integer overflow yields undersized heap allocation
  6. Execute
    Heap OOB write corrupts adjacent structures
  7. Impact
    Achieve 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Crypt::OpenSSL::PKCS12 0 ≤1.94

Affected Packages

euvd crypt_openssl_pkcs12 no fix

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

Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 9.8 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
May 18, 2026 - 13:22 NVD
9.8 (CRITICAL)
CVE Published
May 17, 2026 - 19:16 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 99% exploitable
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

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

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2016-0800 MEDIUM POC
5.9 Mar 01

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

CVE-2015-0204 MEDIUM POC
4.3 Jan 09

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

CVE-2022-2068 HIGH
7.3 Jun 21

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas

CVE-2015-4000 LOW POC
3.7 May 21

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

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2016-2107 MEDIUM POC
5.9 May 05

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

CVE-2015-1793 MEDIUM POC
6.5 Jul 09

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

CVE-2022-3602 HIGH
7.5 Nov 01

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy