CVE-2020-25644: Wildfly openssl natives parent Wildfly-OpenSSL Memory Leak Flaw Vulnerability

HIGH
Advisory Identifier: GHSA-hxj4-885f-grgp
CVSS 7.5
CWE-401
Published
Advisory Summary

CVE-2020-25644 is a HIGH (CVSS 7.5) wildfly-openssl memory leak flaw vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting Wildfly openssl natives parent libraries in the Maven ecosystem. The issue involves wildfly-openssl memory leak flaw. Remediation is available by upgrading affected packages to version 1.1.3.Final.

CVE-2020-25644 at a Glance

CVE Identifier CVE-2020-25644
GHSA Identifier GHSA-hxj4-885f-grgp
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-401: Missing Release of Memory after Effective Lifetime
Affected Product Wildfly openssl natives parent
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2020-25644

To remediate this vulnerability, upgrade all affected Wildfly openssl natives parent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.wildfly.openssl:wildfly-openssl-natives-parent fixed: 1.1.3.Final
<dependency>
    <groupId>org.wildfly.openssl</groupId>
    <artifactId>wildfly-openssl-natives-parent</artifactId>
    <version>1.1.3.Final</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.wildfly.openssl

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2020-25644, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.wildfly.openssl

Analyze the terminal output to locate any version of Wildfly openssl natives parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.3.Final), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.wildfly.openssl command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-401: Missing Release of Memory after Effective Lifetime, where the product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. In Wildfly openssl natives parent, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A memory leak flaw was found in WildFly OpenSSL in versions prior to 1.1.3.Final, where it removes an HTTP session. It may allow the attacker to cause OOM leading to a denial of service. The highest threat from this vulnerability is to system availability.

CVE-2020-25644 Affected Wildfly openssl natives parent Versions

1 component(s)
Fixed Versions:
1.1.3.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.wildfly.openssl:wildfly-openssl-natives-parent
Maven
< 1.1.3.Final
1.1.3.Final

References

Frequently Asked Questions

What is CVE-2020-25644?
CVE-2020-25644 is a security vulnerability in Wildfly openssl natives parent involving Wildfly-OpenSSL memory leak flaw under CWE-401: Missing Release of Memory after Effective Lifetime.
Which Wildfly openssl natives parent versions are affected?
Affected versions include releases prior to 1.1.3.Final across affected packages: org.wildfly.openssl:wildfly-openssl-natives-parent.
What version fixes CVE-2020-25644?
Upgrading to 1.1.3.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is wildfly-openssl-natives-parent affected?
Yes, org.wildfly.openssl:wildfly-openssl-natives-parent is affected in releases prior to 1.1.3.Final. Upgrade your dependency to 1.1.3.Final or later.
What is the CVSS score of CVE-2020-25644?
CVE-2020-25644 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2020-25644?
CVE-2020-25644 is classified under CWE-401: Missing Release of Memory after Effective Lifetime (The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.).
How can I check Maven dependencies for CVE-2020-25644?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wildfly.openssl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hxj4-885f-grgp",
  "modified" : "2024-02-22T01:45:33Z",
  "published" : "2022-05-24T17:30:10Z",
  "aliases" : [ "CVE-2020-25644" ],
  "summary" : "Wildfly-OpenSSL memory leak flaw",
  "details" : "A memory leak flaw was found in WildFly OpenSSL in versions prior to 1.1.3.Final, where it removes an HTTP session. It may allow the attacker to cause OOM leading to a denial of service. The highest threat from this vulnerability is to system availability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly.openssl:wildfly-openssl-natives-parent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.3.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-25644"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-openssl-natives/pull/4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-openssl-natives/pull/4/files"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-openssl-natives/commit/7c26514676f3fb0dee0bcaa7d4680f982372950f"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1885485"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wildfly-security/wildfly-openssl-natives"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/WFSSL-51"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20201016-0004"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-401" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-13T23:13:57Z",
    "nvd_published_at" : "2020-10-06T14:15:00Z"
  }
}