CVE-2023-50572: Jline parent JLine Vulnerable To Out Of Vulnerability
MODERATECVE-2023-50572 is a MODERATE (CVSS 5.5) jline vulnerable to out of vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Jline parent libraries in the Maven ecosystem. The issue involves jline vulnerable to out of memory error. Remediation is available by upgrading affected packages to version 3.25.0.
CVE-2023-50572 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-50572
To remediate this vulnerability, upgrade all affected Jline 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.jline</groupId>
<artifactId>jline-parent</artifactId>
<version>3.25.0</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.jline
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-50572, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jline
Analyze the terminal output to locate any version of Jline parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.25.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jline 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-122: Heap-based Buffer Overflow, where a heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). In Jline 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-2023-50572 Affected Jline parent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jline:jline-parent
|
Maven |
< 3.25.0
|
3.25.0
|
References
Frequently Asked Questions
What is CVE-2023-50572?
Which Jline parent versions are affected?
What version fixes CVE-2023-50572?
Is jline-parent affected?
What is the CVSS score of CVE-2023-50572?
What CWE is associated with CVE-2023-50572?
How can I check Maven dependencies for CVE-2023-50572?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2268-98wh-qfhf",
"modified" : "2024-01-05T19:49:51Z",
"published" : "2023-12-29T15:30:37Z",
"aliases" : [ "CVE-2023-50572" ],
"summary" : "JLine vulnerable to out of memory error",
"details" : "An issue in the component `GroovyEngine.execute` of JLine v3.24.1 allows attackers to cause an out of memory (OOM) error exception.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jline:jline-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.25.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50572"
}, {
"type" : "WEB",
"url" : "https://github.com/jline/jline3/issues/909"
}, {
"type" : "WEB",
"url" : "https://github.com/jline/jline3/commit/f3c60a3e6255e8e0c20d5043a4fe248446f292bb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jline/jline3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-122", "CWE-787" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-29T20:08:20Z",
"nvd_published_at" : "2023-12-29T15:15:10Z"
}
}