CVE-2022-0778 is a denial-of-service bug in OpenSSL's BN_mod_sqrt() that loops forever when a crafted certificate or private key carries invalid explicit elliptic curve parameters. Parsing happens before signature checks, so any TLS client or server reading an untrusted certificate can hang. NVD scores it 7.5; OpenSSL fixed it in 1.1.1n and 3.0.2.
Vulnerability summary
CVSS base score
7.5
High severity
EPSS score (FIRST)
73.2%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2022-0778 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| OpenSSL (libcrypto BN_mod_sqrt) | cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* | 1.0.2 before 1.0.2zd, 1.1.0 and 1.1.1 before 1.1.1n, 3.0.0 to before 3.0.2 (fixed in 1.1.1n and 3.0.2 on 15 March 2022; 1.0.2zd for premium support customers) |
| Siemens SIMATIC S7-1500 and ET 200SP CPUs, S7-1200 CPUs, CP 1243-1, RUGGEDCOM RM1224, SCALANCE M800 and other industrial products | — | per product in SSA-712929, for example S7-1500 CPU 1511-1 PN fixed in V2.9.7, S7-1200 CPU in V4.6.0, CP 1243-1 in V3.4.29, RUGGEDCOM RM1224 and SCALANCE M804PB in V7.2 |
| EDK II UEFI firmware (Ubuntu edk2 package) | — | fixed in jammy 2022.02-3ubuntu0.22.04.4; focal and bionic marked vulnerable (per Ubuntu) |
What does this mean for affected devices?
CVE-2022-0778 is an infinite loop (CWE-835) in BN_mod_sqrt(), the function OpenSSL uses to compute a modular square root. The OpenSSL advisory of 15 March 2022 rates it High and explains that the function is called when parsing certificates that contain elliptic curve public keys in compressed form or explicit curve parameters with a compressed base point. "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." The advisory lists TLS clients consuming server certificates, TLS servers consuming client certificates and certificate authorities parsing requests among the vulnerable cases. NVD's Primary score is 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
The fixes are 1.1.1n and 3.0.2. OpenSSL 1.0.2 was out of public support, so 1.0.2zd went only to premium support customers, which leaves many embedded 1.0.2 builds dependent on a vendor or distribution backport. On a device, a hung process means a stalled web server, OPC UA endpoint or VPN daemon until a watchdog restarts it.
Siemens ProductCERT SSA-712929, first published 2022-06-14 and at version 22 on 2026-04-14, is the largest device list for this CVE: its CSAF record names 585 affected product entries. Examples are the SIMATIC S7-1500 CPU 1511-1 PN (fixed in V2.9.7), S7-1200 CPUs (V4.6.0), the CP 1243-1 communication processor (V3.4.29), and the RUGGEDCOM RM1224 LTE router and SCALANCE M804PB (V7.2). Siemens lists no fix for some products, such as the SCALANCE W1788-1 M12, and its general recommendation for those is to protect network access to the devices. Boot firmware is exposed too: the Ubuntu tracker lists the edk2 UEFI package separately, fixed in jammy's 2022.02-3ubuntu0.22.04.4 and still vulnerable for focal and bionic.
Backports hide behind old version strings. The Debian tracker lists the fix in buster's 1.1.1d-0+deb10u8 and bullseye's 1.1.1k-1+deb11u2, so a scanner that compares only the upstream version will report those builds as vulnerable, and a letter-suffixed build such as 1.1.1k needs an engineer's check against the vendor changelog. This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV); FIRST EPSS gives it 0.732, the 99.5th percentile, in its 2026-11-15 dataset (FIRST EPSS).
Our OpenSSL vulnerabilities in embedded firmware guide covers finding statically linked OpenSSL copies and asking a BIOS vendor for EDK II status. For the OpenSSL CVE that is KEV-listed, see Heartbleed, CVE-2014-0160, and the input handling fix guide covers parser hardening for untrusted input.
Evidence
- BN_mod_sqrt() loops forever for non-prime moduli; reached when parsing certificates with compressed EC keys or explicit parameters, before signature verification; severity High; fixed in 1.1.1n and 3.0.2 on 15 March 2022; 1.0.2zd for premium support customers. — OpenSSL Security Advisory 2022-03-15
- NVD Primary CVSS 3.1 7.5, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; CWE-835; CPE 1.0.2 to before 1.0.2zd, 1.1.0 to before 1.1.1n, 3.0.0 to before 3.0.2. — NVD
- 585 affected product entries; S7-1500 CPU 1511-1 PN fix V2.9.7, S7-1200 V4.6.0, CP 1243-1 V3.4.29, RUGGEDCOM RM1224 and SCALANCE M804PB V7.2; SCALANCE W1788-1 M12 without fix; version 22, 2026-04-14. — Siemens SSA-712929
- edk2 fixed in jammy 2022.02-3ubuntu0.22.04.4; focal and bionic vulnerable. — Ubuntu CVE tracker
- Debian buster fixed 1.1.1d-0+deb10u8, bullseye 1.1.1k-1+deb11u2 (DSA-5103-1). — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.73188 (99.5th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Can CVE-2022-0778 be triggered before a certificate is validated?
Yes. OpenSSL says certificate parsing happens before the signature is verified, so any process that parses an externally supplied certificate, or a crafted private key, can be sent into the loop. In 1.0.2 the public key is parsed later, but any operation that needs it, including verifying a self-signed certificate, still triggers it (per the OpenSSL advisory).
Which OpenSSL versions fix CVE-2022-0778?
OpenSSL 1.1.1n and 3.0.2, both released on 15 March 2022. For 1.0.2 the fix is 1.0.2zd, available only to premium support customers, so devices on 1.0.2 rely on vendor or distribution backports (per the OpenSSL advisory).
Which industrial devices are affected by CVE-2022-0778?
Siemens SSA-712929 names 585 affected product entries, including SIMATIC S7-1500 and S7-1200 CPUs, the CP 1243-1, RUGGEDCOM RM1224 routers and SCALANCE switches and access points, with fixed versions per product (per Siemens ProductCERT).
Is CVE-2022-0778 in the CISA KEV catalog?
No, it is not listed as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.732, the 99.5th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?