CVE-2020-27822: Wildfly parent Wildfly Has A Memory Leak Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>21.0.2.Final</version>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>22.0.0.Beta1</version>
</dependency>
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
CVE-2020-27822 Affected Wildfly parent Versions
2 component(s)| 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?
Which Wildfly parent versions are affected?
What version fixes CVE-2020-27822?
Is wildfly-parent affected?
What is the CVSS score of CVE-2020-27822?
What CWE is associated with CVE-2020-27822?
How can I check Maven dependencies for CVE-2020-27822?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}