Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

OpenSSL X.509 Email Address 4-byte Buffer Overflow

IdentifiersCVE-2022-3602CWE-121

CVE-2022-3602 is a stack-based buffer overflow in OpenSSL 3.0.0 through 3.0.6 during X.509 certificate verification, specifically in name constraint checking involving punycode-decoded email address handling. The flaw was introduced in OpenSSL 3.0.0 in the punycode decoding functionality used for processing email address name constraints in X.509 certificates. A malicious certificate can trigger an overflow of four attacker-controlled bytes on the stack after certificate chain signature verification. In practice, the vulnerable path is reachable when an OpenSSL 3.0 application verifies X.509 certificates from untrusted sources, including TLS clients connecting to malicious servers and TLS servers that request client authentication from malicious clients. OpenSSL 1.0.2, 1.1.1, and earlier branches are not affected. The issue was fixed in OpenSSL 3.0.7.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can crash the target process, causing denial of service. Because the overwrite is a 4-byte attacker-controlled stack overflow, OpenSSL initially considered remote code execution possible and pre-announced the issue as critical; however, after further analysis it was downgraded to high severity because common platform/compiler stack layouts and modern stack protections often make a crash more likely than reliable code execution. OpenSSL stated it was not aware of a working RCE exploit or in-the-wild exploitation at disclosure time, but RCE could not be fully ruled out on all platforms due to source-based builds and varying stack layouts.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure to untrusted certificate verification paths. For TLS servers, disable TLS client authentication until fixes are applied. More generally, avoid accepting or validating X.509 certificate chains from untrusted sources where feasible, and limit connections to untrusted servers from vulnerable TLS clients. Platform stack protections may reduce RCE likelihood but should not be relied upon as a substitute for patching.

Remediation

Patch, then assume compromise.

Upgrade OpenSSL to version 3.0.7 or later. Any product, appliance, container image, runtime, or application statically or dynamically linked against vulnerable OpenSSL 3.0.0 through 3.0.6 should be updated to a build that incorporates the OpenSSL 3.0.7 fix. If OpenSSL is supplied by an operating system vendor or third party, obtain and apply the vendor-provided patched package or product update.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (3 hidden).

VALID 1 / 4 TOTALView more in app
CVE-2022-3602-pocMaturityPoCVerified exploit

This repository contains a proof-of-concept (PoC) exploit for CVE-2022-3602, a buffer overflow vulnerability in OpenSSL versions 3.0 to below 3.0.7. The main file, 'CVE-2022-3602.c', is a C program that connects to a specified IP and port (typically where a vulnerable OpenSSL service is running) and sends a crafted payload designed to trigger a buffer overflow, potentially causing a Denial of Service (DoS). The payload is generated using a hardcoded array and a simple RC4-like algorithm. The README provides compilation and usage instructions, demonstrating how to target a local or remote service. No detection or scanning functionality is present; the code is solely for exploitation. The attack vector is network-based, requiring the attacker to connect to the target service. The repository is structured simply, with one exploit source file and a README.

eatscrayonDisclosed Oct 31, 2022cnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AnyAnyhardware
Fedora ProjectFedoraoperating_system
NetAppClustered Data Ontapoperating_system
NodejsNodejsapplication
OpenSSL Software FoundationOpensslapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity3

Community discussion across Reddit, Mastodon, and other social sources.