ALPINE-CVE-2022-3786
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.18 | openssl | 1.1.1c-r0, 1.1.1, 1.1.1 |
| Alpine:v3.16 | openssl3 | 1.1.1i-r0, 1.1.1, 3.0.0-r0 |
| Alpine:v3.22 | nodejs | 0, 0, 0 |
| Alpine:v3.20 | nodejs | 16.18.0-r0, 16.18.0-r1, 18.12.0-r0 |
| Alpine:v3.19 | openssl | 1.1.1c-r0, 1.1.1b-r0, 1.1.1a-r1 |
| Alpine:v3.15 | openssl3 | 3.0.3-r0, 3.0.0-r4, 3.0.0-r2 |
| Alpine:v3.20 | openssl | 1.1.1, 1.1.1-r3, 1.1.1-r2 |
| Alpine:v3.21 | nodejs | 0, 0, 0 |
| Alpine:v3.23 | nodejs | 0, 0, 0 |
| Alpine:v3.18 | nodejs | 10.14.0-r0, 0, 10.14.0-r0 |
| Alpine:v3.19 | nodejs | 16.13.2-r1, 12.17.0-r0, 12.16.3-r1 |
| Alpine:v3.21 | openssl | 1.1.1, 1.1.1, 1.1.1 |
| Alpine:v3.22 | openssl | 1.1.1-r4, 1.1.1-r3, 1.1.1-r2 |
| Alpine:v3.17 | openssl | 1.1.1b-r1, 0, 3.0.6-r0 |
| Alpine:v3.23 | openssl | 1.1.1-r0, 1.1.1-r2, 1.1.1b-r1 |
| Alpine:v3.17 | nodejs | 8.11.0-r1, 8.11.0-r0, 8.10.0-r0 |
Exploit Intelligence
- Finding CVE-2022-3786 (openssl) with Mayhem (github-poc)
- risk_calculator.cpp (github-poc)
- risk_calculator.cpp (github-poc)
- cve_db.json (github-poc)
- TestCommand.yaml (github-poc)
- advisories.html (github-poc)
Timeline
- Nov 1, 2022 CVE Published
- Dec 3, 2025 CVE Updated
- Apr 30, 2026 Distribution Patch