Vulnerabilities in pkg:maven/org.fusesource.hawtjni/hawtjni-runtime

PACKAGE
Advisory Identifier: GHSA-49j7-qghp-5wj8
Advisory Summary

CVE-2013-2035 is a MODERATE improper control of generation of vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Hawtjni runtime libraries in the Maven ecosystem. The issue involves improper control of generation of code in hawtjni. Remediation is available by upgrading affected packages to version 1.8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.fusesource.hawtjni/hawtjni-runtime

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.fusesource.hawtjni/hawtjni-runtime. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-49j7-qghp-5wj8 CVE-2013-2035 MODERATE Improper Control of Generation of Code in HawtJNI

CVE-2013-2035 at a Glance

CVE Identifier CVE-2013-2035
GHSA Identifier GHSA-49j7-qghp-5wj8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Hawtjni runtime
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-2035

To remediate this vulnerability, upgrade all affected Hawtjni runtime 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.fusesource.hawtjni:hawtjni-runtime fixed: 1.8
<dependency>
    <groupId>org.fusesource.hawtjni</groupId>
    <artifactId>hawtjni-runtime</artifactId>
    <version>1.8</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.fusesource.hawtjni

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.fusesource.hawtjni

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

Note: The mvn dependency:tree -Dincludes=org.fusesource.hawtjni 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Hawtjni runtime, 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

Race condition in hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/Library.java in HawtJNI before 1.8, when a custom library path is not specified, allows local users to execute arbitrary Java code by overwriting a temporary JAR file with a predictable name in /tmp.

CVE-2013-2035 Affected Hawtjni runtime Versions

1 component(s)
Fixed Versions:
1.8
Product / Package Ecosystem Affected Versions Fixed Version
org.fusesource.hawtjni:hawtjni-runtime
Maven
< 1.8
1.8

References

Frequently Asked Questions

What is CVE-2013-2035?
CVE-2013-2035 is a security vulnerability in Hawtjni runtime involving Improper Control of Generation of Code in HawtJNI under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Hawtjni runtime versions are affected?
Affected versions include releases prior to 1.8 across affected packages: org.fusesource.hawtjni:hawtjni-runtime.
What version fixes CVE-2013-2035?
Upgrading to 1.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hawtjni-runtime affected?
Yes, org.fusesource.hawtjni:hawtjni-runtime is affected in releases prior to 1.8. Upgrade your dependency to 1.8 or later.
What CWE is associated with CVE-2013-2035?
CVE-2013-2035 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2013-2035?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.fusesource.hawtjni'. 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-49j7-qghp-5wj8",
  "modified" : "2022-07-08T19:07:06Z",
  "published" : "2022-05-17T04:17:07Z",
  "aliases" : [ "CVE-2013-2035" ],
  "summary" : "Improper Control of Generation of Code in HawtJNI",
  "details" : "Race condition in hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/Library.java in HawtJNI before 1.8, when a custom library path is not specified, allows local users to execute arbitrary Java code by overwriting a temporary JAR file with a predictable name in /tmp.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.fusesource.hawtjni:hawtjni-runtime"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2035"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jline/jline2/issues/85"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jruby/jruby/issues/732"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fusesource/hawtjni/commit/92c266170ce98edc200c656bd034a237098b8aa5"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-2035"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-1029.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-1784.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-1785.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-1786.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2014-0029.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2014-0245.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2014-0254.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2014-0400.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0034.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.osvdb.org/93411"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T19:07:06Z",
    "nvd_published_at" : "2013-08-28T23:55:00Z"
  }
}