Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. openssl
  4. ›
  5. CVE-2022-0778

CVE-2022-0778: Loop with Unreachable Exit Condition ('Infinite Loop')

March 15, 2022 (updated November 9, 2023)

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

References

  • lists.debian.org/debian-lts-announce/2022/03/msg00023.html
  • lists.debian.org/debian-lts-announce/2022/03/msg00024.html
  • nvd.nist.gov/vuln/detail/CVE-2022-0778
  • security.netapp.com/advisory/ntap-20220321-0002/
  • www.debian.org/security/2022/dsa-5103

Code Behaviors & Features

Detect and mitigate CVE-2022-0778 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.2 before 1.0.2zd, all versions starting from 1.1.0 before 1.1.1n, all versions starting from 3.0.0 before 3.0.2

Fixed versions

  • 1.0.2zd
  • 1.1.1n
  • 3.0.2

Solution

Upgrade to versions 1.0.2zd, 1.1.1n, 3.0.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

conan/openssl/CVE-2022-0778.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.