CVE-2022-3602X.509 Email Address 4-byte Buffer Overflow
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).
What to do
Likely to be exploited: EPSS gives a 91% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu, crates.io: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.7 | UBUNTU-CVE-2022-3602 |
| Ubuntu 16.04 | edk2 | Fix pending | ||
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | openssl | Fix pending | ||
| Ubuntu 14.04 | edk2 | Fix pending | ||
| Debian 14 | openssl | Fixed | 3.0.7-1 | DEBIAN-CVE-2022-3602 |
| Debian 13 | openssl | Fixed | 3.0.7-1 | DEBIAN-CVE-2022-3602 |
| Debian 12 | openssl | Fixed | 3.0.7-1 | DEBIAN-CVE-2022-3602 |
| Red Hat Enterprise Linux 9 | compat-openssl11 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.0.1-43.el9_0 | RHSA-2022:7288 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.0.1-43.el9_0 | RHSA-2022:7288 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.0.1-43.el9_0 | RHSA-2022:7288 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.0.1-43.el9_0 | RHSA-2022:7288 |
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl098e | Not affected | ||
| Red Hat Enterprise Linux 7 | ovmf | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl098e | Not affected | ||
| AlmaLinux 9 | openssl | Fixed | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.0.1-43.el9_0 | ALSA-2022:7288 |
| Rocky Linux 9 | openssl | Fixed | 1:3.0.1-43.el9_0 | RLSA-2022:7288 |
| Alpine Linux 3.24 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.24 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.23 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.23 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.22 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.22 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.21 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.21 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.20 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.20 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.19 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.19 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.18 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.18 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.17 | nodejs | Fixed | 18.12.1-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.17 | openssl | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.16 | openssl3 | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| Alpine Linux 3.15 | openssl3 | Fixed | 3.0.7-r0 | ALPINE-CVE-2022-3602 |
| crates.io library | openssl-src | Fixed | 300.0.11 | RUSTSEC-2022-0064 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 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)
Vendor advisories:
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-openssl-W9… (vendor-advisory)
- https://security.gentoo.org/glsa/202211-01 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://www.openssl.org/news/secadv/20221101.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=fe3b639dc19b325846f4f6801f2f4604f56e3de3
- http://www.openwall.com/lists/oss-security/2022/11/01/15
- http://www.openwall.com/lists/oss-security/2022/11/01/16
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-openssl-W9sdCc2a
- http://www.openwall.com/lists/oss-security/2022/11/01/21
- http://www.openwall.com/lists/oss-security/2022/11/01/19
- http://www.openwall.com/lists/oss-security/2022/11/01/18
- http://www.openwall.com/lists/oss-security/2022/11/01/20
- http://www.openwall.com/lists/oss-security/2022/11/01/24
- http://www.openwall.com/lists/oss-security/2022/11/01/17
- https://security.gentoo.org/glsa/202211-01
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0023
- https://www.kb.cert.org/vuls/id/794340
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWP23EZYOBDJQP7HP4YU7W2ABU2YDITS/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.