Vulnerabilities in pkg:maven/org.eclipse.californium/scandium

PACKAGE
Advisory Identifier: GHSA-p72g-cgh9-ghjg
Advisory Summary

CVE-2022-39368 is a HIGH (CVSS 8.2) failing dtls handshakes may cause vulnerability (CWE-404: Improper Resource Shutdown or Release) affecting Scandium libraries in the Maven ecosystem. The issue involves failing dtls handshakes may cause throttling to block processing of records. Remediation is available by upgrading affected packages to version 3.7.0, 2.7.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.eclipse.californium/scandium

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-p72g-cgh9-ghjg CVE-2022-39368 HIGH Failing DTLS handshakes may cause throttling to block processing of records

CVE-2022-39368 at a Glance

CVE Identifier CVE-2022-39368
GHSA Identifier GHSA-p72g-cgh9-ghjg
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-404: Improper Resource Shutdown or Release
Affected Product Scandium
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.2

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

How to Fix CVE-2022-39368

To remediate this vulnerability, upgrade all affected Scandium 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.eclipse.californium:scandium fixed: 3.7.0
<dependency>
    <groupId>org.eclipse.californium</groupId>
    <artifactId>scandium</artifactId>
    <version>3.7.0</version>
</dependency>
org.eclipse.californium:scandium fixed: 2.7.4
<dependency>
    <groupId>org.eclipse.californium</groupId>
    <artifactId>scandium</artifactId>
    <version>2.7.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.eclipse.californium

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.eclipse.californium

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

Note: The mvn dependency:tree -Dincludes=org.eclipse.californium 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-404: Improper Resource Shutdown or Release, where the product does not release or incorrectly releases a resource before it is made available for re-use. In Scandium, 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 Failing handshakes didn't cleanup counters for throttling. In consequence the threshold may get reached and will not be released again. The results in permanently dropping records. The issues was reported for certificate based handshakes, but it can't be excluded, that this happens also for PSK based handshakes. It generally affects client and server as well. ### Patches main: commit 726bac57659410da463dcf404b3e79a7312ac0b9 2.7.x: commit 5648a0c27c2c2667c98419254557a14bac2b1f3f Users are requested to update to 3.7.0. If Californium 2 support is required, users are requested to update to 2.7.4. ### Workarounds none.

CVE-2022-39368 Affected Scandium Versions

2 component(s)
Fixed Versions:
3.7.02.7.4
Product / Package Ecosystem Affected Versions Fixed Version
org.eclipse.californium:scandium
Maven
≥ 3.0.0
< 3.7.0
3.7.0
org.eclipse.californium:scandium
Maven
≥ 2.7.0
< 2.7.4
2.7.4

References

Frequently Asked Questions

What is CVE-2022-39368?
CVE-2022-39368 is a security vulnerability in Scandium involving Failing DTLS handshakes may cause throttling to block processing of records under CWE-404: Improper Resource Shutdown or Release.
Which Scandium versions are affected?
Affected versions include releases prior to 3.7.0, 2.7.4 across affected packages: org.eclipse.californium:scandium.
What version fixes CVE-2022-39368?
Upgrading to 3.7.0, 2.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is scandium affected?
Yes, org.eclipse.californium:scandium is affected in releases prior to 3.7.0, 2.7.4. Upgrade your dependency to 3.7.0, 2.7.4 or later.
What is the CVSS score of CVE-2022-39368?
CVE-2022-39368 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2022-39368?
CVE-2022-39368 is classified under CWE-404: Improper Resource Shutdown or Release (The product does not release or incorrectly releases a resource before it is made available for re-use.).
How can I check Maven dependencies for CVE-2022-39368?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.eclipse.californium'. 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-p72g-cgh9-ghjg",
  "modified" : "2022-11-18T06:15:49Z",
  "published" : "2022-11-09T17:20:03Z",
  "aliases" : [ "CVE-2022-39368" ],
  "summary" : "Failing DTLS handshakes may cause throttling to block processing of records",
  "details" : "### Impact\n\nFailing handshakes didn't cleanup counters for throttling. In consequence the threshold may get reached and will not be released again. The results in permanently dropping records. The issues was reported for certificate based handshakes, but it can't be excluded, that this happens also for PSK based handshakes. It generally affects client and server as well.\n\n### Patches\n\nmain: commit 726bac57659410da463dcf404b3e79a7312ac0b9 \n2.7.x: commit 5648a0c27c2c2667c98419254557a14bac2b1f3f\n\nUsers are requested to update to 3.7.0. If Californium 2 support is required, users are requested to update to 2.7.4. \n\n### Workarounds\nnone.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.californium:scandium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.7.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.californium:scandium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-californium/californium/security/advisories/GHSA-p72g-cgh9-ghjg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39368"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-californium/californium/issues/2065"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-californium/californium/commit/5648a0c27c2c2667c98419254557a14bac2b1f3f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-californium/californium/commit/726bac57659410da463dcf404b3e79a7312ac0b9"
  }, {
    "type" : "WEB",
    "url" : "https://cwe.mitre.org/data/definitions/452.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/eclipse-californium/californium"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-404" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-09T17:20:03Z",
    "nvd_published_at" : "2022-11-10T00:15:00Z"
  }
}