patchminder
Proof of concept · GitHub CVE-2022-0778

Denial of servicein OpenSSL.

Published 15 Mar 2022 · Updated 14 Oct 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. 73.2% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli. Internally this function is used when parsing certificates that contain elliptic curve public keys in compressed form or explicit elliptic curve parameters with a base point encoded in compressed form. It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. Since certificate parsing happens prior to verification of the certificate signature, any process that parses an externally supplied certificate may thus be subject to a denial of service attack.

What to do now
  • Upgrade BFCClient to V2.17 or later.
  • Upgrade Industrial Edge · OPC UA Connector to V1.7.0.0 or later.
  • Upgrade Industrial Edge · SIMATIC S7 Connector App to V1.7.0.0 or later.
  • Upgrade RUGGEDCOM RM1224 LTE(4G) EU to V7.2 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
OpenSSL
Not confirmed
Not confirmed
CVE record
BFCClient
before V2.17
V2.17
CISA
Industrial Edge · OPC UA Connector
before V1.7.0.0
V1.7.0.0
CISA
Industrial Edge · SIMATIC S7 Connector App
before V1.7.0.0
V1.7.0.0
CISA
RUGGEDCOM RM1224 LTE(4G) EU
before V7.2
V7.2
CISA
RUGGEDCOM RM1224 LTE(4G) NAM
before V7.2
V7.2
CISA
RUGGEDCOM ROX MX5000
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX MX5000RE
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1400
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1500
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1501
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1510
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1511
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1512
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1524
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX1536
before V2.15.1
V2.15.1
CISA
RUGGEDCOM ROX RX5000
before V2.15.1
V2.15.1
CISA
SCALANCE M804PB
before V7.2
V7.2
CISA
SCALANCE M812-1 ADSL-Router
before V7.2
V7.2
CISA
SCALANCE M816-1 ADSL-Router
before V7.2
V7.2
CISA
SCALANCE M826-2 SHDSL-Router
before V7.2
V7.2
CISA
SCALANCE M874-2
before V7.2
V7.2
CISA
SCALANCE M874-3
before V7.2
V7.2
CISA
SCALANCE M876-3
before V7.2
V7.2
CISA

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. 28 Feb 2022
    CVE ID reserved by openssl.
  2. 15 Mar 2022
    Published in the CVE List.
  3. 15 Mar 2022
    First public proof of concept on GitHub.
  4. 14 Oct 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
7 repositories
GitHubno warning signs founddrago-96/CVE-2022-0778181 stars · created 15 Mar 2022Proof of concept for CVE-2022-0778, which triggers an infinite loop in parsing X.509 certificates due to a bug in BN_mod_sqrt
GitHubno warning signs foundjkakavas/CVE-2022-0778-POC11 stars · created 18 Apr 2022
GitHubno warning signs foundyywing/cve-2022-07789 stars · created 4 Apr 2022
GitHubno warning signs found0xUhaw/CVE-2022-07782 stars · created 21 Apr 2022Proof of concept for CVE-2022-0778 in P12 and PEM format
GitHubno warning signs foundjeongjunsoo/CVE-2022-07781 stars · created 26 Oct 2023
GitHubno warning signs foundTrinadh465/openssl-1.1.1g_CVE-2022-07780 stars · created 11 Sep 2023
GitHubno warning signs foundfedericonbaez/cortex9-openssl-bn-mod-sqrt-loop-model0 stars · created 6 Nov 2026Pure-Python port of OpenSSL BN_mod_sqrt before/after the CVE-2022-0778 fix, with a step budget on the loops that can grow. Offline.

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: Infinite loop

All CWE-835 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-0778: Denial of service in OpenSSL. https://patchminder.com/cve/cve-2022-0778/ (accessed 5 December 2026).