---
title: "CVE-2022-3602"
canonical: "https://kb.cynergy.app/space/MD/927662136/CVE-2022-3602"
format: markdown
---
**Description**

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Note that this occurs after certificate chain signature verification and requires either a CA to have signed the malicious certificate or for the application to continue certificate verification despite failure to construct a path to a trusted issuer. An attacker can craft a malicious email address to overflow four attacker-controlled bytes on the stack. This buffer overflow could result in a crash (causing a denial of service) or potentially remote code execution. Many platforms implement stack overflow protections which would mitigate against the risk of remote code execution. The risk may be further mitigated based on stack layout for any given platform/compiler. Pre-announcements of CVE-2022-3602 described this issue as CRITICAL. Further analysis based on some of the mitigating factors described above have led this to be downgraded to HIGH. Users are still encouraged to upgrade to a new version as soon as possible. In a TLS client, this can be triggered by connecting to a malicious server. In a TLS server, this can be triggered if the server requests client authentication and a malicious client connects. Fixed in OpenSSL 3.0.7 (Affected 3.0.0,3.0.1,3.0.2,3.0.3,3.0.4,3.0.5,3.0.6).  


**Published On**

11/01/2022

**Updated On**

11/04/2022

**Trending**

TRUE

**CWE**

<u>[CWE-120](http://cwe.mitre.org/data/definitions/120.html)</u>

**Exploit**

[https://github.com/alicangnll/SpookySSL-Scanner](https://github.com/alicangnll/SpookySSL-Scanner) 

 

**Mitigation:**

No mitigation avaluble

  

**Remediation**

- [160191](https://cve.report/qid/160191) Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2022-7288)
- [160192](https://cve.report/qid/160192) Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2022-9968)
- [199012](https://cve.report/qid/199012) Ubuntu Security Notification for Open Secure Sockets Layer (OpenSSL) Vulnerabilities (USN-5710-1)
- [240798](https://cve.report/qid/240798) Red Hat Update for Open Secure Sockets Layer (OpenSSL) (RHSA-2022:7288)
- [283270](https://cve.report/qid/283270) Fedora Security Update for Open Secure Sockets Layer (OpenSSL) (FEDORA-2022-502f096dce)
- [354102](https://cve.report/qid/354102) Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : ALAS2022-2022-157
- [377733](https://cve.report/qid/377733) Open Secure Sockets Layer (OpenSSL) Less Than 3.0.7 Buffer Overflow Vulnerability (Scan Utility)
- [38879](https://cve.report/qid/38879) Open Secure Sockets Layer (OpenSSL) Less Than 3.0.7 Buffer Overflow Vulnerability
- [502587](https://cve.report/qid/502587) Alpine Linux Security Update for Open Secure Sockets Layer3 (OpenSSL3)
- [520001](https://cve.report/qid/520001) Open Secure Sockets Layer (OpenSSL) Multiple Vulnerabilities (CVE-2022-3602, CVE-2022-3786)
- [690972](https://cve.report/qid/690972) Free Berkeley Software Distribution (FreeBSD) Security Update for Open Secure Sockets Layer (OpenSSL) (0844671c-5a09-11ed-856e-d4c9ef517024)
- [710678](https://cve.report/qid/710678) Gentoo Linux Open Secure Sockets Layer (OpenSSL) Multiple Vulnerabilities (GLSA 202211-01)
- [752752](https://cve.report/qid/752752) SUSE Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL-3) (SUSE-SU-2022:3843-1)
- [940723](https://cve.report/qid/940723) AlmaLinux Security Update for Open Secure Sockets Layer (OpenSSL) (ALSA-2022:7288)

**References**

|  |  |  |
| --- | --- | --- |
|  | [http://www.openssl.org](http://www.openssl.org)   
<span style="color: #ffffff">**text/plain**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| [SECURITY] Fedora 36 Update: openssl-3.0.5-2.fc36 - package-announce - Fedora Mailing-Lists | [http://lists.fedoraproject.org](http://lists.fedoraproject.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| [http://git.openssl.org](http://git.openssl.org)  Git - openssl.git/commitdiff | [http://web.archive.org](http://web.archive.org)   
<span style="color: #ffffff">**text/xml**</span>  
<span style="color: #ffffff">**Inactive LinkNot Archived**</span> | ![URL Logo]() |
| Security Advisory | <span style="color: #ffffff">**[psirt.global.sonicwall.com](http://psirt.global.sonicwall.com)**</span>  
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| <span style="color: #ffffff">**No Description Provided**</span> | <span style="color: #ffffff">**[tools.cisco.com](http://tools.cisco.com)**</span>  
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| OpenSSL: Multiple Vulnerabilities (GLSA 202211-01) — Gentoo security | [http://security.gentoo.org](http://security.gentoo.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| VU#794340 - OpenSSL 3.0.0 to 3.0.6 decodes some punycode email addresses in X.509 certificates improperly | [http://www.kb.cert.org](http://www.kb.cert.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Fwd: Node.js security updates for all active release lines, November 2022 | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| [SECURITY] Fedora 37 Update: openssl-3.0.5-3.fc37 - package-announce - Fedora Mailing-Lists | [http://lists.fedoraproject.org](http://lists.fedoraproject.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| OpenSSL Security Advisory 20221101 ≈ Packet Storm | [http://packetstormsecurity.com](http://packetstormsecurity.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| November 2022 OpenSSL Vulnerabilities in NetApp Products | NetApp Product Security | [http://security.netapp.com](http://security.netapp.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/x-c**</span> | ![URL Logo]() |
| oss-security - Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) | [http://www.openwall.com](http://www.openwall.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |