Vulnerability · Published Nov 1, 2022 · Assigned by openssl
CVE-2022-3602X.509 Email Address 4-byte Buffer Overflow
High 7.5
In plain English
A high-severity out-of-bounds write in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 90.8% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | openssl | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| AlmaLinux:9 | openssl-devel | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| AlmaLinux:9 | openssl-libs | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| AlmaLinux:9 | openssl-perl | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| Alpine:v3.20 | nodejs | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.21 | nodejs | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.22 | nodejs | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.23 | nodejs | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.24 | nodejs | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.20 | openssl | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.21 | openssl | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.22 | openssl | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.23 | openssl | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine:v3.24 | openssl | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Debian:12 | openssl | 3.0.7-1 | DEBIAN-CVE-2022-3602 |
| Debian:13 | openssl | 3.0.7-1 | DEBIAN-CVE-2022-3602 |
| Debian:14 | openssl | 3.0.7-1 | DEBIAN-CVE-2022-3602 |
| Rocky Linux:9 | openssl | 1:3.0.1-43.el9_0 | RLSA-2022:7288 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.7 | UBUNTU-CVE-2022-3602 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.7 | USN-5710-1 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://www.openssl.org/news/secadv/20221101.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=fe3b639dc19b325846f4f6801f2f4604f56e3de3
- [oss-security] 20221101 OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- 20221028 Vulnerabilities in OpenSSL Affecting Cisco Products: November 2022 vendor-advisory
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- GLSA-202211-01 vendor-advisory
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0023
- VU#794340 third-party-advisory
- FEDORA-2022-0f1d2e0537 vendor-advisory
- FEDORA-2022-502f096dce vendor-advisory
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221101 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: Fwd: Node.js security updates for all active release lines, November 2022 mailing-list
- [oss-security] 20221102 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) mailing-list
- http://packetstormsecurity.com/files/169687/OpenSSL-Security-Advisory-20221101.html
- [oss-security] 20221102 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) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 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) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- https://security.netapp.com/advisory/ntap-20221102-0001/
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221102 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221103 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) mailing-list
- [oss-security] 20221103 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221103 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) mailing-list
- [oss-security] 20221103 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) mailing-list
- [oss-security] 20221103 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) mailing-list
- [oss-security] 20221103 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list
- [oss-security] 20221103 Re: OpenSSL X.509 Email Address 4-byte Buffer Overflow (CVE-2022-3602), X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786) mailing-list