Vulnerabilities in pkg:maven/org.mvel/mvel2

PACKAGE
Advisory Identifier: GHSA-h63j-xqx6-w58r
Advisory Summary

CVE-2023-51079 is a MODERATE (CVSS 5.3) mvel2 timeout error exists vulnerability (General Security Weakness) affecting Mvel2 libraries in the Maven ecosystem. The issue involves mvel2 timeout error exists in the parsetools.subcompileexpression method. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.mvel/mvel2

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.mvel/mvel2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-h63j-xqx6-w58r CVE-2023-51079 MODERATE mvel2 TimeOut error exists in the ParseTools.subCompileExpression method

CVE-2023-51079 at a Glance

CVE Identifier CVE-2023-51079
GHSA Identifier GHSA-h63j-xqx6-w58r
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification General Security Weakness
Affected Product Mvel2
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L).

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 Low (A:L)

How to Fix CVE-2023-51079

To remediate this vulnerability, upgrade all affected Mvel2 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.mvel:mvel2 fixed: Latest secure release
<dependency>
    <groupId>org.mvel</groupId>
    <artifactId>mvel2</artifactId>
    <version>Latest secure release</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.mvel

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.mvel

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

Note: The mvn dependency:tree -Dincludes=org.mvel 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 General Security Weakness. In Mvel2, 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 TimeOut error exists in the ParseTools.subCompileExpression method in mvel2 v2.5.0 Final.

CVE-2023-51079 Affected Mvel2 Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.mvel:mvel2
Maven
2.5.0.Final
All 1 versions
2.5.0.Final
None specified

References

Frequently Asked Questions

What is CVE-2023-51079?
CVE-2023-51079 is a security vulnerability in Mvel2 involving mvel2 TimeOut error exists in the ParseTools.subCompileExpression method under General Security Weakness.
Which Mvel2 versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.mvel:mvel2.
What version fixes CVE-2023-51079?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is mvel2 affected?
Yes, org.mvel:mvel2 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-51079?
CVE-2023-51079 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2023-51079?
CVE-2023-51079 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2023-51079?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.mvel'. 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-h63j-xqx6-w58r",
  "modified" : "2024-01-08T15:54:10Z",
  "published" : "2023-12-27T21:31:01Z",
  "aliases" : [ "CVE-2023-51079" ],
  "summary" : "mvel2 TimeOut error exists in the ParseTools.subCompileExpression method",
  "details" : "A TimeOut error exists in the ParseTools.subCompileExpression method in mvel2 v2.5.0 Final.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mvel:mvel2"
    },
    "versions" : [ "2.5.0.Final" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-51079"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mvel/mvel/issues/348"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mvel/mvel/issues/348#issuecomment-1874047271"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mvel/mvel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-28T16:41:04Z",
    "nvd_published_at" : "2023-12-27T21:15:08Z"
  }
}