Path-Check/gaen-mobile

CVE-2021-23841 (Medium) detected in OpenSSL-Universal-1.1.180

mend-bolt-for-github opened this issue · 1 comments

CVE-2021-23841 - Medium Severity Vulnerability

Vulnerable Library - OpenSSL-Universal-1.1.180

OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support. Supports OSX and iOS including Simulator (armv7,armv7s,arm64,x86_64).

Library home page: https://github.com/krzyzanowskim/OpenSSL/archive/1.1.180.zip

Path to dependency file: gaen-mobile/ios/Podfile.lock

Path to vulnerable library: gaen-mobile/ios/Podfile.lock

Dependency Hierarchy:

  • Flipper-RSocket-1.3.1 (Root Library)
    • Flipper-Folly-2.5.3
      • OpenSSL-Universal-1.1.180 (Vulnerable Library)

Found in HEAD commit: 570c9f91ae551da2ffeb15a6cbfe34153451f434

Found in base branch: develop

Vulnerability Details

The OpenSSL public API function X509_issuer_and_serial_hash() attempts to create a unique hash value based on the issuer and serial number data contained within an X509 certificate. However it fails to correctly handle any errors that may occur while parsing the issuer field (which might occur if the issuer field is maliciously constructed). This may subsequently result in a NULL pointer deref and a crash leading to a potential denial of service attack. The function X509_issuer_and_serial_hash() is never directly called by OpenSSL itself so applications are only vulnerable if they use this function directly and they use it on certificates that may have been obtained from untrusted sources. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).

Publish Date: 2021-02-16

URL: CVE-2021-23841

CVSS 3 Score Details (5.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.openssl.org/news/secadv/20210216.txt

Release Date: 2021-02-16

Fix Resolution: OpenSSL_1_1_1j


Step up your Open Source Security Game with WhiteSource here

As mentioned in the description of this vulnerability, "...applications are only vulnerable if they use this function directly and they use it on certificates that may have been obtained from un-trusted source." GAEN-Mobile never references the vulnerable function in the project; therefore, this issue poses no risk to the application and this issue can be safely closed.