Skip to content

Potential Vulnerability in Cloned Code#104

Open
tabudz wants to merge 1 commit intolinkingvision:masterfrom
tabudz:cve-2022-0778
Open

Potential Vulnerability in Cloned Code#104
tabudz wants to merge 1 commit intolinkingvision:masterfrom
tabudz:cve-2022-0778

Conversation

@tabudz
Copy link

@tabudz tabudz commented Mar 7, 2026

Summary

Our tool detected a potential vulnerability in 3rdparty/openssl/crypto/bn/bn_sqrt.c which was cloned from openssl/openssl but did not receive the security patch applied. The original issue was reported and fixed under https://nvd.nist.gov/vuln/detail/cve-2022-0778.

Proposed Fix

Apply the same patch as the one in openssl/openssl to eliminate the vulnerability.

Reference

https://nvd.nist.gov/vuln/detail/cve-2022-0778
openssl/openssl@3118eb6

The calculation in some cases does not finish for non-prime p.

This fixes CVE-2022-0778.

Based on patch by David Benjamin <davidben@google.com>.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants