Vulnerabilities in pkg:maven/org.deeplearning4j/dl4j-examples

PACKAGE
Advisory Identifier: GHSA-rc39-g977-687w
Advisory Summary

CVE-2022-36022 is a MODERATE (CVSS 5.3) use of unclaimed s3 bucket vulnerability (CWE-330: Use of Insufficiently Random Values) affecting Platform tests libraries in the Maven ecosystem. The issue involves use of unclaimed s3 bucket in tests and examples. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.deeplearning4j/dl4j-examples

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.deeplearning4j/dl4j-examples. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rc39-g977-687w CVE-2022-36022 MODERATE Use of unclaimed s3 bucket in tests and examples

CVE-2022-36022 at a Glance

CVE Identifier CVE-2022-36022
GHSA Identifier GHSA-rc39-g977-687w
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-330: Use of Insufficiently Random Values
Affected Product Platform tests
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:L/A:N).

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 Low (I:L)
Availability None (A:N)

How to Fix CVE-2022-36022

To remediate this vulnerability, upgrade all affected Platform tests 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.deeplearning4j:platform-tests fixed: Latest secure release
<dependency>
    <groupId>org.deeplearning4j</groupId>
    <artifactId>platform-tests</artifactId>
    <version>Latest secure release</version>
</dependency>
org.deeplearning4j:dl4j-examples fixed: Latest secure release
<dependency>
    <groupId>org.deeplearning4j</groupId>
    <artifactId>dl4j-examples</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.deeplearning4j

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.deeplearning4j

Analyze the terminal output to locate any version of Platform tests 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.deeplearning4j 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-330: Use of Insufficiently Random Values, where the product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. In Platform tests, 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

### Impact People who use some older NLP examples that reference the old S3 bucket. ### Patches The problem has been patched. Upgrade to snapshots for now. A release will be published later to address this due to the vulnerability mostly being examples and 1 class in the actual code base. ### Workarounds Download a word2vec google news vector from a new source using git lfs

CVE-2022-36022 Affected Platform tests Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.deeplearning4j:platform-tests
Maven
≤ 1.0.0-M2.1
org.deeplearning4j:dl4j-examples
Maven
≤ 1.0.0-M2.1

References

Frequently Asked Questions

What is CVE-2022-36022?
CVE-2022-36022 is a security vulnerability in Platform tests involving Use of unclaimed s3 bucket in tests and examples under CWE-330: Use of Insufficiently Random Values.
Which Platform tests versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.deeplearning4j:platform-tests, org.deeplearning4j:dl4j-examples.
What version fixes CVE-2022-36022?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is platform-tests affected?
Yes, org.deeplearning4j:platform-tests is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is dl4j-examples affected?
Yes, org.deeplearning4j:dl4j-examples 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-2022-36022?
CVE-2022-36022 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:L/A:N.
What CWE is associated with CVE-2022-36022?
CVE-2022-36022 is classified under CWE-330: Use of Insufficiently Random Values (The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.).
How can I check Maven dependencies for CVE-2022-36022?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.deeplearning4j'. 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-rc39-g977-687w",
  "modified" : "2022-11-10T21:27:55Z",
  "published" : "2022-11-10T21:27:55Z",
  "aliases" : [ "CVE-2022-36022" ],
  "summary" : "Use of unclaimed s3 bucket in tests and examples",
  "details" : "### Impact\nPeople who use some older NLP examples that reference the old S3 bucket.\n\n### Patches\nThe problem has been patched. Upgrade to snapshots for now. A release will be published later to address this due to the  vulnerability mostly being examples and 1 class in the actual code base.\n\n### Workarounds\nDownload a word2vec google news vector from a new source using git lfs ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.deeplearning4j:platform-tests"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.0-M2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.deeplearning4j:dl4j-examples"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.0-M2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/deeplearning4j/deeplearning4j/security/advisories/GHSA-rc39-g977-687w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/deeplearning4j/security/advisories/GHSA-rc39-g977-687w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-36022"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/deeplearning4j/deeplearning4j"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mmihaltz/word2vec-GoogleNews-vectors"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-330", "CWE-344" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-10T21:27:55Z",
    "nvd_published_at" : "2022-11-10T18:15:00Z"
  }
}