Skip to content
Noroxi
CVE-2022-0778· NVD / CVE Program· CNA openssl

Infinite loop in BN_mod_sqrt() reachable when parsing certificates

Noroxi assessment

Priority: Plan (action score 52/100)

  • Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 73.1% (FIRST EPSS); higher than 99.4% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: compat-openssl10 (AlmaLinux:8) 1:1.0.2o-4.el8_6; openssl (AlmaLinux:8) 1:1.1.1k-6.el8_5; openssl-devel (AlmaLinux:8) 1:1.1.1k-6.el8_5.
  • Mentioned 6 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Add it to your regular patch cycle. Upgrade to compat-openssl10 (AlmaLinux:8) 1:1.0.2o-4.el8_6; openssl (AlmaLinux:8) 1:1.1.1k-6.el8_5; openssl-devel (AlmaLinux:8) 1:1.1.1k-6.el8_5 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

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. The infinite loop can also be reached when parsing crafted private keys as they can contain explicit elliptic curve parameters. Thus vulnerable situations include: - TLS clients consuming server certificates - TLS servers consuming client certificates - Hosting providers taking certificates or private keys from customers - Certificate authorities parsing certification requests from subscribers - Anything else which parses ASN.1 elliptic curve parameters Also any other applications that use the BN_mod_sqrt() where the attacker can control the parameter values are vulnerable to this DoS issue. In the OpenSSL 1.0.2 version the public key is not parsed during initial parsing of the certificate which makes it slightly harder to trigger the infinite loop. However any operation which requires the public key from the certificate will trigger the infinite loop. In particular the attacker can use a self-signed certificate to trigger the loop during verification of the certificate signature. This issue affects OpenSSL versions 1.0.2, 1.1.1 and 3.0. It was addressed in the releases of 1.1.1n and 3.0.2 on the 15th March 2022. Fixed in OpenSSL 3.0.2 (Affected 3.0.0,3.0.1). Fixed in OpenSSL 1.1.1n (Affected 1.1.1-1.1.1m). Fixed in OpenSSL 1.0.2zd (Affected 1.0.2-1.0.2zc).

HighCVSS 7.5 · v3.1—Proof of concept Fix available
Published
Mar 15, 2022
Updated
Jun 17, 2026
EPSS
73.2% · 99th percentile

Report tools

JSON

Action score

52

Plan

Add it to your regular patch cycle.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
22 / 30 · 73.2%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2022-0778

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Port scanning: 5 full scans a day (members only)
  • Uptime monitoring: 1 site, instant email when it goes down
  • Verify your domain: subdomains and takeover risk scanned every week
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
opensslopenssl
debiandebian linux
netappcloud volumes ontap mediator
netappclustered data ontap
netappclustered data ontap antivirus connector
netappsantricity smi-s provider
netappstoragegrid
netappa250 firmware
netappa250
netapp500f firmware
netapp500f
fedoraprojectfedora

and 3 more

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • nodejs node.js12.0.0 and later · up to 12.12.0 inclusive
  • nodejs node.js12.13.0 and later · before 12.22.11
  • nodejs node.jsafter 14.0.0 · up to 14.14.0 inclusive
  • nodejs node.js14.15.0 and later · before 14.19.1
  • nodejs node.jsafter 16.0.0 · up to 16.12.0 inclusive
  • nodejs node.js16.13.0 and later · before 16.14.2
  • nodejs node.jsafter 17.0.0 · before 17.7.2

Versions reported by the vendor

Affected version ranges reported by the assigning authority (openssl). Independent of NVD's CPE analysis and usually ahead of it.

  • OpenSSL OpenSSL

    • Fixed in OpenSSL 3.0.2 (Affected 3.0.0,3.0.1), Fixed in OpenSSL 1.1.1n (Affected 1.1.1-1.1.1m), Fixed in OpenSSL 1.0.2zd (Affected 1.0.2-1.0.2zc)affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8compat-openssl10before 1:1.0.2o-4.el8_61:1.0.2o-4.el8_6
AlmaLinux:8opensslbefore 1:1.1.1k-6.el8_51:1.1.1k-6.el8_5
AlmaLinux:8openssl-develbefore 1:1.1.1k-6.el8_51:1.1.1k-6.el8_5
AlmaLinux:8openssl-libsbefore 1:1.1.1k-6.el8_51:1.1.1k-6.el8_5
AlmaLinux:8openssl-perlbefore 1:1.1.1k-6.el8_51:1.1.1k-6.el8_5
Alpine:v3.12opensslfrom 1.0.2 · before 1.1.1n-r01.1.1n-r0
Alpine:v3.14libretlsbefore 3.3.3p1-r33.3.3p1-r3
Alpine:v3.15libretlsbefore 3.3.4-r33.3.4-r3
Alpine:v3.15openssl3before 3.0.2-r03.0.2-r0
Alpine:v3.16libretlsbefore 3.5.1-r03.5.1-r0
Alpine:v3.17opensslfrom 1.0.2 · before 3.0.2-r03.0.2-r0
crates.ioopenssl-srcfrom 0.0.0-0 · before 111.18.0111.18.0
crates.ioopenssl-srcfrom 300.0.0 · before 300.0.5300.0.5
crates.ioopenssl-srcbefore 111.18.0111.18.0
Debian:10opensslbefore 1.1.1d-0+deb10u81.1.1d-0+deb10u8
Debian:11opensslbefore 1.1.1k-1+deb11u21.1.1k-1+deb11u2
Debian:12opensslbefore 1.1.1n-11.1.1n-1
Debian:9opensslbefore 1.1.0l-1~deb9u51.1.0l-1~deb9u5
Debian:9openssl1.0before 1.0.2u-1~deb9u71.0.2u-1~deb9u7
openSUSE:Leap 15.3openssl-1_0_0before 1.0.2p-3.49.11.0.2p-3.49.1
openSUSE:Tumbleweedcargo-audit-advisory-dbbefore 20220323-1.120220323-1.1
openSUSE:Tumbleweedlibresslbefore 3.4.3-1.13.4.3-1.1
openSUSE:Tumbleweedopenssl-1_1before 1.1.1n-1.11.1.1n-1.1
openSUSE:Tumbleweedopenssl-3before 3.0.2-1.13.0.2-1.1

+96

Other highest-scoring records for the same primary product.

  • CVE-2014-0160The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packets, which allows remKEV
    90Now
  • CVE-2021-3711SM2 Decryption Buffer Overflow
    65This week
  • CVE-2003-0545Double free vulnerability in OpenSSL 0.9.7 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code
    65This week
  • CVE-2016-2108The ASN.1 implementation in OpenSSL before 1.0.1o and 1.0.2 before 1.0.2c allows remote attackers to execute arbitrary code or cause a denia
    62This week
  • CVE-2016-6309statem/statem.c in OpenSSL 1.1.0a does not consider memory-block movement after a realloc call, which allows remote attackers to cause a den
    60This week
  • CVE-2022-3786X.509 Email Address Variable Length Buffer Overflow
    58Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:compat-openssl101:1.0.2o-4.el8_6 · AlmaLinux:8Package registry (OSV)
almalinux:openssl1:1.1.1k-6.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:openssl-devel1:1.1.1k-6.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:openssl-libs1:1.1.1k-6.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:openssl-perl1:1.1.1k-6.el8_5 · AlmaLinux:8Package registry (OSV)
alpine:libretls3.3.3p1-r3 · Alpine:v3.14Package registry (OSV)
alpine:openssl1.1.1n-r0 · Alpine:v3.12Package registry (OSV)
alpine:openssl33.0.2-r0 · Alpine:v3.15Package registry (OSV)
crates.io:openssl-src111.18.0Package registry (OSV)
crates.io:openssl-src300.0.5Package registry (OSV)
debian:openssl1.1.1n-1 · Debian:12Package registry (OSV)
debian:openssl1.01.0.2u-1~deb9u7 · Debian:9Package registry (OSV)
opensuse:cargo-audit-advisory-db20220323-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:libressl3.4.3-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:nodejs1212.22.12-150200.4.32.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:nodejs1414.19.1-150200.15.31.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:openssl-1_0_01.0.2p-3.49.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:openssl-1_11.1.1n-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:openssl-33.0.2-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python-ecdsa0.18.0-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:jbcs-httpd24-apr-util0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:jbcs-httpd24-apr-util-debuginfo0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:openssl1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-debuginfo1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-debugsource1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-devel1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-libs1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-libs-debuginfo1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-perl1:1.1.1k-6.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-static1:1.0.2k-25.el7_9 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)

+17

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×6

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:1812022-03-15
Proof-of-concept repository on GitHubstars:92022-04-04
Proof-of-concept repository on GitHubstars:112022-04-18
Proof-of-concept repository on GitHubstars:22022-04-21
Proof-of-concept repository on GitHubstars:02023-09-11
Proof-of-concept repository on GitHubstars:12023-10-26

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-1 d
  2. Published
  3. TodayOct 13, 2026+1673 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records