Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2022-3786 BIT-node-2022-3786BIT-node-min-2022-3786EUVD-2022-7358GHSA-h8jm-2x53-xhp5RUSTSEC-2022-0065

X.509 Email Address Variable Length Buffer Overflow

Published Nov 1, 2022 · Updated Apr 14, 2026 · Assigned by openssl

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 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.

Affected products

VendorProductAffectedFixed
OpenSSL OpenSSL 3.0.0 – < 3.0.7 3.0.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 openssl 3.0.7-1 —
Debian 13 openssl 3.0.7-1 —
Debian 12 openssl 3.0.7-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS openssl 3.0.2-0ubuntu1.7 USN-5710-1
ReleasePackageFixed inAdvisory
RHEL 9 openssl +3 1:3.0.1-43.el9_0 RHSA-2022:7288

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 openssl +3 1:3.0.1-43.el9_0 ALSA-2022:7288

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 openssl 1:3.0.1-43.el9_0 RLSA-2022:7288
ReleasePackageFixed inAdvisory
SLES 15 SP4 openssl-3 3.0.1-150400.4.11.1 SUSE-SU-2022:4586-1, SUSE-SU-2022:3843-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cargo-audit-advisory-db 20221102-1.1 openSUSE-SU-2024:12469-1
openSUSE Tumbleweed openssl-3 3.0.7-1.1 openSUSE-SU-2024:12475-1
openSUSE Tumbleweed python-cryptography 38.0.3-1.1 openSUSE-SU-2025:14739-1, openSUSE-SU-2024:12480-1, openSUSE-SU-2024:12479-1
openSUSE Tumbleweed python-cryptography-vectors 44.0.0-1.1 openSUSE-SU-2025:14740-1
openSUSE Leap 15.4 openssl-3 3.0.1-150400.4.11.1 SUSE-SU-2022:4586-1, SUSE-SU-2022:3843-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 18.12.1-r0 —
Alpine v3.24 openssl 3.0.7-r0 —
Alpine v3.23 nodejs 18.12.1-r0 —
Alpine v3.23 openssl 3.0.7-r0 —
Alpine v3.22 nodejs 18.12.1-r0 —
Alpine v3.22 openssl 3.0.7-r0 —
Alpine v3.21 nodejs 18.12.1-r0 —
Alpine v3.21 openssl 3.0.7-r0 —
Alpine v3.20 nodejs 18.12.1-r0 —
Alpine v3.20 openssl 3.0.7-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 18.12.1-r0 —
Alpine v3.19 openssl 3.0.7-r0 —
Alpine v3.18 nodejs 18.12.1-r0 —
Alpine v3.18 openssl 3.0.7-r0 —
Alpine v3.17 nodejs 18.12.1-r0 —
Alpine v3.17 openssl 3.0.7-r0 —
Alpine v3.16 openssl3 3.0.7-r0 —
Alpine v3.15 openssl3 3.0.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs +4 1:18.12.1-1.amzn2023.0.2 ALAS2023-2023-084
Amazon Linux 2023 npm 1:8.19.2-1.18.12.1.1.amzn2023.0.2 ALAS2023-2023-084
Amazon Linux 2023 openssl +3 1:3.0.5-1.amzn2023.0.4 ALAS2023-2023-051
Amazon Linux 2023 v8-devel 2:10.2.154.15-1.18.12.1.1.amzn2023.0.2 ALAS2023-2023-084

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 openssl +3 1:3.0.1-43.0.1.el9_0 ELSA-2022-7288

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openssl 3.0.7-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io openssl-src >= 300.0.0, < 300.0.11 300.0.11 GHSA-h8jm-2x53-xhp5

Advisories 26

References