CVE-2022-3786
X.509 Email Address Variable Length Buffer Overflow
Reported by openssl · Published November 1, 2022
openssl-src is fixed in 300.0.11 and 300.0.0 (crates.io)
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 a malicious certificate or for an application to continue certificate verification despite failure to construct a path to a trusted issuer. An attacker can craft a malicious email address in a certificate to overflow an arbitrary number of bytes containing the `.' character (decimal 46) on the stack. This buffer overflow could result in a crash (causing a denial of service). 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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openssl-src | crates.io | 300.0.11, 300.0.0 |
| openssl-devel | Amazon Linux | 1:3.0.5-1.amzn2023.0.4 |
| npm | Amazon Linux | 1:8.19.2-1.18.12.1.1.amzn2023.0.2 |
| openssl-perl | Amazon Linux | 1:3.0.5-1.amzn2023.0.4 |
| nodejs | Amazon Linux | 1:18.12.1-1.amzn2023.0.2 |
| openssl-libs | Amazon Linux | 1:3.0.5-1.amzn2023.0.4 |
| openssl | Alpine | 3.0.7-r0 |
| nodejs | Alpine | 18.12.1-r0 |
| node-min | Bitnami | 19.0.1, 18.12.1, 18.11.0 |
| openssl3 | Alpine | 3.0.7-r0 |
| openssl | Chainguard | 3.0.7-r0 |
| nodejs-libs | Amazon Linux | 1:18.12.1-1.amzn2023.0.2 |
21 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| OpenSSL | OpenSSL | 3.0.0 |
| amazon:2023 | openssl-devel | 0 |
| amazon:2023 | npm | 0 |
| amazon:2023 | openssl-perl | 0 |
| amazon:2023 | nodejs | 0 |
| amazon:2023 | openssl-libs | 0 |
| Siemens | Mcenter | 5.2.1 |
| alpine | openssl | 0 |
| alpine | nodejs | 0 |
| Siemens | SCALANCE X204RNA (HSR) | 3.2.7 |
| alpine | openssl3 | 0 |
| Siemens | SCALANCE X204RNA EEC (HSR) | 3.2.7 |
| chainguard | ruby-3.1 | * |
| Siemens | SCALANCE X204RNA EEC (PRP/HSR) | 3.2.7 |
| chainguard | openssl | 0 |
| Siemens | SICAM GridPass | 1.80 |
| amazon:2023 | nodejs-libs | 0 |
| amazon:2023 | nodejs-devel | 0 |
| Siemens | SCALANCE X204RNA (PRP) | 3.2.7 |
| Siemens | SIMATIC RTLS Locating Manager | 2.13.0.0 |
…and 11 more
Timeline
- Nov 1, 2022 CVE Published
- Nov 2, 2022 EPSS Score (30 in total, the first dated here)
- Oct 9, 2024 PoC Published (4 in total, the first dated here)
- Mar 17, 2026 Security Advisory (11 in total, the first dated here)
- Apr 14, 2026 CVE Updated
- Jun 19, 2026 Coalition ESS Score
- Nov 14, 2026 Distribution Patch (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-3786
vulnetix vdb fixes CVE-2022-3786
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-3786/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- OpenSSL Advisory vendor-advisory
- 3.0.7 git commit patch
- https://www.openssl.org/blog/blog/2022/11/01/email-address-overflows/ url
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00789.html url
- https://www.kb.cert.org/vuls/id/794340 url
- https://cert-portal.siemens.com/productcert/html/ssa-408105.html url
- https://nvd.nist.gov/vuln/detail/CVE-2022-3786 advisory
- https://github.com/advisories/GHSA-h8jm-2x53-xhp5 advisory
- https://github.com/rustsec/advisory-db/pull/1452 advisory
- https://github.com/alexcrichton/openssl-src-rs/commit/4a31c14f31e1a08c18893a37e304dd1dd4b7daa3 patch
- https://github.com/openssl/openssl/commit/fe3b639dc19b325846f4f6801f2f4604f56e3de3 patch
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-openssl-W9sdCc2a advisory
- https://security.netapp.com/advisory/ntap-20221102-0001 advisory
- https://security.gentoo.org/glsa/202211-01 url
- https://rustsec.org/advisories/RUSTSEC-2022-0065.html url
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0023 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DWP23EZYOBDJQP7HP4YU7W2ABU2YDITS url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/63YRPWPUSX3MBHNPIEJZDKQT6YA7UF6S url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWP23EZYOBDJQP7HP4YU7W2ABU2YDITS url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/63YRPWPUSX3MBHNPIEJZDKQT6YA7UF6S url
…and 2 more