Every CVE Search/ Get API key

CVE-2022-3786

X.509 Email Address Variable Length Buffer Overflow

7.5 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

92.5%Up 90.8 points since Nov 2, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-120
Updated
2026-11-02
CVE List 7.5

X.509 Email Address Variable Length 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 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.

Record
CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-120
Updated
2026-11-02
EUVDEUVD-2022-7358 7.5

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.

Record
EUVD-2022-7358
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-h8jm-2x53-xhp5 7.5

X.509 Email Address Variable Length 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 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.

Record
GHSA-h8jm-2x53-xhp5
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-120
Updated
2026-11-02
OSVALPINE-CVE-2022-3786 7.5

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.

Record
ALPINE-CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVBELL-CVE-2022-3786 7.5

CVE-2022-3786 does not affect BellSoft software

Record
BELL-CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 19 moreShow less
OSV 7.5

X.509 Email Address Variable Length 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 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.

Record
CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2022-3786 7.5

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.

Record
DEBIAN-CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVGHSA-h8jm-2x53-xhp5 7.5

X.509 Email Address Variable Length 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 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.

Record
GHSA-h8jm-2x53-xhp5
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-120
Updated
2026-11-02
OSVRHSA-2022:7288 7.5

Red Hat Security Advisory: openssl security update

Record
RHSA-2022:7288
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRLSA-2022:7288 7.5

Important: openssl security update

OpenSSL is a toolkit that implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols, as well as a full strength general purpose cryptography library.

Security Fix(es):

  • OpenSSL: X.509 Email Address Buffer Overflow (CVE-2022-3602)

  • OpenSSL: X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2022:7288
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-3786 7.5

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.

Record
UBUNTU-CVE-2022-3786
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVALSA-2022:7288 No score

Important: openssl security update

OpenSSL is a toolkit that implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols, as well as a full strength general purpose cryptography library.

Security Fix(es):

  • OpenSSL: X.509 Email Address Buffer Overflow (CVE-2022-3602)
  • OpenSSL: X.509 Email Address Variable Length Buffer Overflow (CVE-2022-3786)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2022:7288
Updated
2026-11-02
OSVBIT-node-2022-3786 No score

X.509 Email Address Variable Length 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 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.

Record
BIT-node-2022-3786
Updated
2026-11-02
OSVBIT-node-min-2022-3786 No score

X.509 Email Address Variable Length 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 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.

Record
BIT-node-min-2022-3786
Updated
2026-11-02
OSVopenSUSE-SU-2024:12469-1 No score

cargo-audit-advisory-db-20221102-1.1 on GA media

These are all security issues fixed in the cargo-audit-advisory-db-20221102-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12469-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:12475-1 No score

libopenssl-3-devel-3.0.7-1.1 on GA media

These are all security issues fixed in the libopenssl-3-devel-3.0.7-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12475-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:12479-1 No score

python310-cryptography-38.0.3-1.1 on GA media

These are all security issues fixed in the python310-cryptography-38.0.3-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12479-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:12480-1 No score

python310-cryptography-vectors-38.0.3-1.1 on GA media

These are all security issues fixed in the python310-cryptography-vectors-38.0.3-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12480-1
Updated
2026-11-02
OSVopenSUSE-SU-2025:14739-1 No score

python311-cryptography-44.0.0-1.1 on GA media

These are all security issues fixed in the python311-cryptography-44.0.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2025:14739-1
Updated
2026-11-02
OSVopenSUSE-SU-2025:14740-1 No score

python311-cryptography-vectors-44.0.0-1.1 on GA media

These are all security issues fixed in the python311-cryptography-vectors-44.0.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2025:14740-1
Updated
2026-11-02
OSVRUSTSEC-2022-0065 No score

X.509 Email Address Variable Length 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 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.

Record
RUSTSEC-2022-0065
Updated
2026-11-02
OSVSUSE-SU-2022:3843-1 No score

Security update for openssl-3

This update for openssl-3 fixes the following issues:

  • CVE-2022-3358: Fixed vulnerability where a custom cipher passed to EVP_CipherInit() could lead into NULL encryption being unexpectedly used (bsc#1204226).
  • CVE-2022-3602: Fixed a buffer overflow in the X.509 email address. (bsc#1204714)
  • CVE-2022-3786: Fixed another buffer overflow related to X.509 email address. (bsc#1204714)
Record
SUSE-SU-2022:3843-1
Updated
2026-11-02
OSVSUSE-SU-2022:4586-1 No score

Security update for openssl-3

This update for openssl-3 fixes the following issues:

  • CVE-2022-3996: Fixed X.509 Policy Constraints Double Locking (bsc#1206374)
Record
SUSE-SU-2022:4586-1
Updated
2026-11-02
OSVUSN-5710-1 No score

openssl vulnerabilities

It was discovered that OpenSSL incorrectly handled certain X.509 Email Addresses. If a certificate authority were tricked into signing a specially-crafted certificate, a remote attacker could possibly use this issue to cause OpenSSL to crash, resulting in a denial of service. The default compiler options for affected releases reduce the vulnerability to a denial of service. (CVE-2022-3602, CVE-2022-3786)

It was discovered that OpenSSL incorrectly handled applications creating custom ciphers via the legacy EVP_CIPHER_meth_new() function. This issue could cause certain applications that mishandled values to the function to possibly end up with a NULL cipher and messages in plaintext. (CVE-2022-3358)

Record
USN-5710-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
openssl-src
crates.io
300.0.0 up to 300.0.11
300.0.11
nodejs
Alpine:v3.17
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.18
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.19
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.20
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.21
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.22
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.23
before 18.12.1-r0
18.12.1-r0
nodejs
Alpine:v3.24
before 18.12.1-r0
18.12.1-r0
openssl
Alpine:v3.17
3.0.0 up to 3.0.7-r0
3.0.7-r0
Show 39 moreShow less
Affected packages
PackageAffectedFixed
openssl
Alpine:v3.18
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl
Alpine:v3.19
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl
Alpine:v3.20
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl
Alpine:v3.21
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl
Alpine:v3.22
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl
Alpine:v3.23
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl
Alpine:v3.24
3.0.0 up to 3.0.7-r0
3.0.7-r0
openssl3
Alpine:v3.15
before 3.0.7-r0
3.0.7-r0
openssl3
Alpine:v3.16
before 3.0.7-r0
3.0.7-r0
openssl
AlmaLinux:9
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-devel
AlmaLinux:9
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-libs
AlmaLinux:9
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-perl
AlmaLinux:9
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
node
Bitnami
18.0.0 up to 18.11.0, 18.12.0 up to 18.12.1, 19.0.0 up to 19.0.1
18.11.018.12.119.0.1
node-min
Bitnami
18.0.0 up to 18.11.0, 18.12.0 up to 18.12.1, 19.0.0 up to 19.0.1
18.11.018.12.119.0.1
openssl
Debian:12
before 3.0.7-1
3.0.7-1
openssl
Debian:13
before 3.0.7-1
3.0.7-1
openssl
Debian:14
before 3.0.7-1
3.0.7-1
openssl-debuginfo
Red Hat:enterprise_linux:9::appstream
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-debugsource
Red Hat:enterprise_linux:9::appstream
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-devel
Red Hat:enterprise_linux:9::appstream
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-libs-debuginfo
Red Hat:enterprise_linux:9::appstream
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-perl
Red Hat:enterprise_linux:9::appstream
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl
Red Hat:enterprise_linux:9::baseos
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-debuginfo
Red Hat:enterprise_linux:9::baseos
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-debugsource
Red Hat:enterprise_linux:9::baseos
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-libs
Red Hat:enterprise_linux:9::baseos
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-libs-debuginfo
Red Hat:enterprise_linux:9::baseos
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl
Rocky Linux:9
before 1:3.0.1-43.el9_0
1:3.0.1-43.el9_0
openssl-3
SUSE:Linux Enterprise Module for Basesystem 15 SP4
before 3.0.1-150400.4.11.1
3.0.1-150400.4.11.1
openssl-3
openSUSE:Leap 15.4
before 3.0.1-150400.4.11.1
3.0.1-150400.4.11.1
openssl-3
SUSE:Linux Enterprise Module for Basesystem 15 SP4
before 3.0.1-150400.4.14.1
3.0.1-150400.4.14.1
openssl-3
openSUSE:Leap 15.4
before 3.0.1-150400.4.14.1
3.0.1-150400.4.14.1
openssl
Ubuntu:22.04:LTS
before 3.0.2-0ubuntu1.7, plus listed versions
1.1.1l-1ubuntu13.0.0-1ubuntu13.0.1-0ubuntu13.0.2-0ubuntu13.0.2-0ubuntu1.1
Show 4 moreShow less
3.0.2-0ubuntu1.23.0.2-0ubuntu1.43.0.2-0ubuntu1.53.0.2-0ubuntu1.6
3.0.2-0ubuntu1.7
cargo-audit-advisory-db
openSUSE:Tumbleweed
before 20221102-1.1
20221102-1.1
openssl-3
openSUSE:Tumbleweed
before 3.0.7-1.1
3.0.7-1.1
python-cryptography
openSUSE:Tumbleweed
before 38.0.3-1.1
38.0.3-1.1
python-cryptography
openSUSE:Tumbleweed
before 44.0.0-1.1
44.0.0-1.1
python-cryptography-vectors
openSUSE:Tumbleweed
before 44.0.0-1.1
44.0.0-1.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubWhatTheFuzz/openssl-fuzz2023-01-11

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-3786 is a high vulnerability (CVSS 7.5) in Fedoraproject Fedora, published November 1, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 92.5%, the 99th percentile. Fixed in openssl-src 300.0.11.

References

Show 83 moreShow less
MoveEnter Open