CVE-2022-3786
X.509 Email Address Variable Length Buffer Overflow
Record from NVD · 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.
EPSS 92.49% · 99.8th percentile
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 |
| nodejs | node.js | 18.0.0, 18.12.0, 19.0.0 |
| fedoraproject | fedora | 36, 37 |
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)
- Jun 19, 2026 Coalition ESS Score
- Nov 22, 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
- https://www.kb.cert.org/vuls/id/794340 advisory
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c42165b5706e42f67ef8ef4c351a9a4c5d21639a patch
- https://www.openssl.org/news/secadv/20221101.txt advisory
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00789.html technical
- https://cert-portal.siemens.com/productcert/html/ssa-408105.html technical