CVE-2020-27822: Wildfly parent Wildfly Has A Memory Leak Vulnerability

MODERATE
Advisory Identifier: GHSA-qx3p-9mmp-4v8h
CVSS 5.9
CWE-401
Published
Advisory Summary

CVE-2020-27822 is a MODERATE (CVSS 5.9) wildfly has a memory leak vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting Wildfly parent libraries in the Maven ecosystem. The issue involves wildfly has a memory leak vulnerability. Remediation is available by upgrading affected packages to version 21.0.2.Final, 22.0.0.Beta1.

CVE-2020-27822 at a Glance

CVE Identifier CVE-2020-27822
GHSA Identifier GHSA-qx3p-9mmp-4v8h
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-401: Missing Release of Memory after Effective Lifetime
Affected Product Wildfly parent
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
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-27822

To remediate this vulnerability, upgrade all affected Wildfly 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:wildfly-parent fixed: 21.0.2.Final
<dependency>
    <groupId>org.wildfly</groupId>
    <artifactId>wildfly-parent</artifactId>
    <version>21.0.2.Final</version>
</dependency>
org.wildfly:wildfly-parent fixed: 22.0.0.Beta1
<dependency>
    <groupId>org.wildfly</groupId>
    <artifactId>wildfly-parent</artifactId>
    <version>22.0.0.Beta1</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

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.wildfly

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

Note: The mvn dependency:tree -Dincludes=org.wildfly 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 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 flaw was found in Wildfly affecting versions 19.0.0.Final, 19.1.0.Final, 20.0.0.Final, 20.0.1.Final, and 21.0.0.Final. When an application uses the OpenTracing API's java-interceptors, there is a possibility of a memory leak. This flaw allows an attacker to impact the availability of the server. The highest threat from this vulnerability is to system availability.

CVE-2020-27822 Affected Wildfly parent Versions

2 component(s)
Fixed Versions:
21.0.2.Final22.0.0.Beta1
Product / Package Ecosystem Affected Versions Fixed Version
org.wildfly:wildfly-parent
Maven
≥ 19.0.0.Final
< 21.0.2.Final
21.0.2.Final
org.wildfly:wildfly-parent
Maven
≥ 22.0.0.Alpha1
< 22.0.0.Beta1
All 1 versions
22.0.0.Alpha1
22.0.0.Beta1

References

Frequently Asked Questions

What is CVE-2020-27822?
CVE-2020-27822 is a security vulnerability in Wildfly parent involving Wildfly has a memory leak vulnerability under CWE-401: Missing Release of Memory after Effective Lifetime.
Which Wildfly parent versions are affected?
Affected versions include releases prior to 21.0.2.Final, 22.0.0.Beta1 across affected packages: org.wildfly:wildfly-parent.
What version fixes CVE-2020-27822?
Upgrading to 21.0.2.Final, 22.0.0.Beta1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wildfly-parent affected?
Yes, org.wildfly:wildfly-parent is affected in releases prior to 21.0.2.Final, 22.0.0.Beta1. Upgrade your dependency to 21.0.2.Final, 22.0.0.Beta1 or later.
What is the CVSS score of CVE-2020-27822?
CVE-2020-27822 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2020-27822?
CVE-2020-27822 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-27822?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wildfly'. 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-qx3p-9mmp-4v8h",
  "modified" : "2023-08-23T13:48:00Z",
  "published" : "2022-05-24T17:35:40Z",
  "aliases" : [ "CVE-2020-27822" ],
  "summary" : "Wildfly has a memory leak vulnerability",
  "details" : "A flaw was found in Wildfly affecting versions 19.0.0.Final, 19.1.0.Final, 20.0.0.Final, 20.0.1.Final, and 21.0.0.Final. When an application uses the OpenTracing API's java-interceptors, there is a possibility of a memory leak. This flaw allows an attacker to impact the availability of the server. The highest threat from this vulnerability is to system availability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly:wildfly-parent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "19.0.0.Final"
      }, {
        "fixed" : "21.0.2.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly:wildfly-parent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "22.0.0.Alpha1"
      }, {
        "fixed" : "22.0.0.Beta1"
      } ]
    } ],
    "versions" : [ "22.0.0.Alpha1" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-27822"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly/wildfly/pull/13749"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly/wildfly/pull/13779"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly/wildfly/commit/67ef84fd7aab789a535b137e5e506fd29d212455"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly/wildfly/commit/c8b02f6a0605f4e2abfeaf21d28b7fe76171004b"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1904060"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wildfly/wildfly"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/WFLY-14094"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-401" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-13T22:38:36Z",
    "nvd_published_at" : "2020-12-08T01:15:00Z"
  }
}