Vulnerabilities in pkg:maven/com.liferay/com.liferay.portal.tools.bundle.support

PACKAGE
Advisory Identifier: GHSA-h436-432x-8fvx
Advisory Summary

CVE-2018-1324 is a MODERATE (CVSS 5.5) denial of service vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Commons compress libraries in the Maven ecosystem. The issue involves apache commons compress vulnerable to denial of service due to infinite loop. Remediation is available by upgrading affected packages to version 1.16, 3.7.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.liferay/com.liferay.portal.tools.bundle.support

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.liferay/com.liferay.portal.tools.bundle.support. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-h436-432x-8fvx CVE-2018-1324 MODERATE Apache Commons Compress vulnerable to denial of service due to infinite loop

CVE-2018-1324 at a Glance

CVE Identifier CVE-2018-1324
GHSA Identifier GHSA-h436-432x-8fvx
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Affected Product Commons compress
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2018-1324

To remediate this vulnerability, upgrade all affected Commons compress 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.apache.commons:commons-compress fixed: 1.16
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-compress</artifactId>
    <version>1.16</version>
</dependency>
com.liferay:com.liferay.portal.tools.bundle.support fixed: 3.7.4
<dependency>
    <groupId>com.liferay</groupId>
    <artifactId>com.liferay.portal.tools.bundle.support</artifactId>
    <version>3.7.4</version>
</dependency>
io.takari:commons-compress fixed: Latest secure release
<dependency>
    <groupId>io.takari</groupId>
    <artifactId>commons-compress</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.apache.commons

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.commons

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

Note: The mvn dependency:tree -Dincludes=org.apache.commons 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-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Commons compress, 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 specially crafted ZIP archive can be used to cause an infinite loop inside of Apache Commons Compress' extra field parser used by the ZipFile and ZipArchiveInputStream classes in versions 1.11 to 1.15. This can be used to mount a denial of service attack against services that use Compress' zip package.

CVE-2018-1324 Affected Commons compress Versions

3 component(s)
Fixed Versions:
1.163.7.4
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.commons:commons-compress
Maven
≥ 1.11
< 1.16
1.16
com.liferay:com.liferay.portal.tools.bundle.support
Maven
≥ 3.2.7
< 3.7.4
3.7.4
io.takari:commons-compress
Maven
1.12
All 1 versions
1.12
None specified

References

Frequently Asked Questions

What is CVE-2018-1324?
CVE-2018-1324 is a security vulnerability in Commons compress involving Apache Commons Compress vulnerable to denial of service due to infinite loop under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop').
Which Commons compress versions are affected?
Affected versions include releases prior to 1.16, 3.7.4 across affected packages: org.apache.commons:commons-compress, com.liferay:com.liferay.portal.tools.bundle.support, io.takari:commons-compress.
What version fixes CVE-2018-1324?
Upgrading to 1.16, 3.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is commons-compress affected?
Yes, org.apache.commons:commons-compress is affected in releases prior to 1.16, Latest secure release. Upgrade your dependency to 1.16, Latest secure release or later.
Is com.liferay.portal.tools.bundle.support affected?
Yes, com.liferay:com.liferay.portal.tools.bundle.support is affected in releases prior to 3.7.4. Upgrade your dependency to 3.7.4 or later.
What is the CVSS score of CVE-2018-1324?
CVE-2018-1324 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-1324?
CVE-2018-1324 is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') (The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.).
How can I check Maven dependencies for CVE-2018-1324?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.commons'. 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-h436-432x-8fvx",
  "modified" : "2024-02-27T18:28:56Z",
  "published" : "2019-03-14T15:41:12Z",
  "aliases" : [ "CVE-2018-1324" ],
  "summary" : "Apache Commons Compress vulnerable to denial of service due to infinite loop",
  "details" : "A specially crafted ZIP archive can be used to cause an infinite loop inside of Apache Commons Compress' extra field parser used by the ZipFile and ZipArchiveInputStream classes in versions 1.11 to 1.15. This can be used to mount a denial of service attack against services that use Compress' zip package.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.commons:commons-compress"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.11"
      }, {
        "fixed" : "1.16"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.liferay:com.liferay.portal.tools.bundle.support"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.7"
      }, {
        "fixed" : "3.7.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.takari:commons-compress"
    },
    "versions" : [ "1.12" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1324"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/commons-compress/commit/2a2f1dc48e22a34ddb72321a4db211da91aa933b"
  }, {
    "type" : "WEB",
    "url" : "https://arxiv.org/pdf/2306.05534.pdf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-h436-432x-8fvx"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/commons-compress"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jensdietrich/xshady-release/tree/main/CVE-2018-1324"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/1c7b6df6d1c5c8583518a0afa017782924918e4d6acfaf23ed5b2089@%3Cdev.commons.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b8ef29df0f1d55aa741170748352ae8e425c7b1d286b2f257711a2dd@%3Cdev.creadur.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ff8dcfe29377088ab655fda9d585dccd5b1f07fabd94ae84fd60a7f8@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r5532dc8d5456b5151e8c286801e2e5769f5c04118b29c3b5d13ea387@%3Cissues.beam.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-835" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:38:39Z",
    "nvd_published_at" : "2018-03-16T13:29:00Z"
  }
}