patchminder
Proof of concept · GitHub CVE-2022-3786

Buffer overflowin OpenSSL.

Published 1 Nov 2022 · Updated 14 Apr 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 92.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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 now
  • Upgrade OpenSSL to 3.0.7 or later.
  • Upgrade openssl-src (crates.io) to 300.0.11 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
OpenSSL
3.0.0 to before 3.0.7
3.0.7
CVE record
openssl-src (crates.io)
300.0.0 to before 300.0.11
300.0.11
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 1 Nov 2022
    CVE ID reserved by openssl.
  2. 1 Nov 2022
    Published in the CVE List.
  3. 11 Jan 2023
    First public proof of concept on GitHub.
  4. 14 Apr 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundWhatTheFuzz/openssl-fuzz5 stars · created 11 Jan 2023Finding CVE-2022-3786 (openssl) with Mayhem

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other OpenSSL vulnerabilities

Same weakness: Classic buffer overflow

All CWE-120 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-3786: Buffer overflow in OpenSSL. https://patchminder.com/cve/cve-2022-3786/ (accessed 5 December 2026).