Vulnerabilities in pkg:maven/org.apache.orc/orc

PACKAGE
Advisory Identifier: GHSA-mqmp-4mcp-vg8v
Advisory Summary

CVE-2018-8015 is a HIGH (CVSS 7.5) apache orc vulnerable to uncontrolled vulnerability (CWE-674: Uncontrolled Recursion) affecting Orc libraries in the Maven ecosystem. The issue involves apache orc vulnerable to uncontrolled recursion. Remediation is available by upgrading affected packages to version 1.4.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.orc/orc

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-mqmp-4mcp-vg8v CVE-2018-8015 HIGH Apache ORC vulnerable to Uncontrolled Recursion

CVE-2018-8015 at a Glance

CVE Identifier CVE-2018-8015
GHSA Identifier GHSA-mqmp-4mcp-vg8v
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Orc
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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 High (A:H)

How to Fix CVE-2018-8015

To remediate this vulnerability, upgrade all affected Orc 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.orc:orc fixed: 1.4.4
<dependency>
    <groupId>org.apache.orc</groupId>
    <artifactId>orc</artifactId>
    <version>1.4.4</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.orc

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.orc 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-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Orc, 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

In Apache ORC 1.0.0 to 1.4.3 a malformed ORC file can trigger an endlessly recursive function call in the C++ or Java parser. The impact of this bug is most likely denial-of-service against software that uses the ORC file parser. With the C++ parser, the stack overflow might possibly corrupt the stack.

CVE-2018-8015 Affected Orc Versions

1 component(s)
Fixed Versions:
1.4.4
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.orc:orc
Maven
≥ 1.0.0
< 1.4.4
1.4.4

References

Frequently Asked Questions

What is CVE-2018-8015?
CVE-2018-8015 is a security vulnerability in Orc involving Apache ORC vulnerable to Uncontrolled Recursion under CWE-674: Uncontrolled Recursion.
Which Orc versions are affected?
Affected versions include releases prior to 1.4.4 across affected packages: org.apache.orc:orc.
What version fixes CVE-2018-8015?
Upgrading to 1.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is orc affected?
Yes, org.apache.orc:orc is affected in releases prior to 1.4.4. Upgrade your dependency to 1.4.4 or later.
What is the CVSS score of CVE-2018-8015?
CVE-2018-8015 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-8015?
CVE-2018-8015 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check Maven dependencies for CVE-2018-8015?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.orc'. 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-mqmp-4mcp-vg8v",
  "modified" : "2022-11-07T22:19:20Z",
  "published" : "2022-05-13T01:20:37Z",
  "aliases" : [ "CVE-2018-8015" ],
  "summary" : "Apache ORC vulnerable to Uncontrolled Recursion",
  "details" : "In Apache ORC 1.0.0 to 1.4.3 a malformed ORC file can trigger an endlessly recursive function call in the C++ or Java parser. The impact of this bug is most likely denial-of-service against software that uses the ORC file parser. With the C++ parser, the stack overflow might possibly corrupt the stack.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.orc:orc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.4.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-8015"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/orc/pull/266"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/orc/commit/d5018d309a8adc6b8e0567cb692a17371d16e108"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/orc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/orc/blob/9cf9d26a20ac4d43911d7967ecaef8ef26b60594/site/security/CVE-2018-8015.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/orc/commits/rel/release-1.4.4"
  }, {
    "type" : "WEB",
    "url" : "https://orc.apache.org/security/CVE-2018-8015"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-07T22:19:20Z",
    "nvd_published_at" : "2018-05-18T17:29:00Z"
  }
}