GHSA-wp4m-7hpj-8qp8: Duplicate Advisory Discovery Uses The Same AES/GCM Vulnerability

MODERATE
CVSS 5.3
CWE-330 CWE-323
Published
Advisory Summary

GHSA-wp4m-7hpj-8qp8 is a MODERATE (CVSS 5.3) discovery uses the same aes/gcm vulnerability (CWE-330: Use of Insufficiently Random Values) affecting Duplicate Advisory libraries in the Maven ecosystem. The issue involves discovery uses the same aes/gcm nonce throughout the session. Remediation is available by upgrading affected packages to version 0.4.5.

GHSA-wp4m-7hpj-8qp8 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-wp4m-7hpj-8qp8
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-330: Use of Insufficiently Random Values
Affected Product Duplicate Advisory
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:L/I:N/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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-wp4m-7hpj-8qp8

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tech.pegasys.discovery:discovery fixed: 0.4.5
<dependency>
    <groupId>tech.pegasys.discovery</groupId>
    <artifactId>discovery</artifactId>
    <version>0.4.5</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=tech.pegasys.discovery

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-wp4m-7hpj-8qp8, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=tech.pegasys.discovery

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

Note: The mvn dependency:tree -Dincludes=tech.pegasys.discovery 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 Duplicate Advisory, 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

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-w3hj-wr2q-x83g. This link is maintained to preserve external references. ### Original Description Consensys Discovery versions less than 0.4.5 uses the same AES/GCM nonce for the entire session. which should ideally be unique for every message. The node's private key isn't compromised, only the session key generated for specific peer communication is exposed.

GHSA-wp4m-7hpj-8qp8 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
0.4.5
Product / Package Ecosystem Affected Versions Fixed Version
tech.pegasys.discovery:discovery
Maven
< 0.4.5
0.4.5

References

Frequently Asked Questions

What is GHSA-wp4m-7hpj-8qp8?
GHSA-wp4m-7hpj-8qp8 is a security vulnerability in Duplicate Advisory involving Discovery uses the same AES/GCM Nonce throughout the session under CWE-330: Use of Insufficiently Random Values.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 0.4.5 across affected packages: tech.pegasys.discovery:discovery.
What version fixes GHSA-wp4m-7hpj-8qp8?
Upgrading to 0.4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is discovery affected?
Yes, tech.pegasys.discovery:discovery is affected in releases prior to 0.4.5. Upgrade your dependency to 0.4.5 or later.
What is the CVSS score of GHSA-wp4m-7hpj-8qp8?
GHSA-wp4m-7hpj-8qp8 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:L/I:N/A:N.
What CWE is associated with GHSA-wp4m-7hpj-8qp8?
GHSA-wp4m-7hpj-8qp8 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 GHSA-wp4m-7hpj-8qp8?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=tech.pegasys.discovery'. 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-wp4m-7hpj-8qp8",
  "modified" : "2025-12-02T00:28:45Z",
  "published" : "2024-01-20T00:30:27Z",
  "withdrawn" : "2025-12-02T00:28:45Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Discovery uses the same AES/GCM Nonce throughout the session",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-w3hj-wr2q-x83g. This link is maintained to preserve external references.\n\n### Original Description\nConsensys Discovery versions less than 0.4.5 uses the same AES/GCM nonce for the entire session. which should ideally be unique for every message. The node's private key isn't compromised, only the session key generated for specific peer communication is exposed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "tech.pegasys.discovery:discovery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ConsenSys/discovery/security/advisories/GHSA-w3hj-wr2q-x83g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23688"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-w3hj-wr2q-x83g"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-w3hj-wr2q-x83g"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-323", "CWE-330" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-02T00:28:45Z",
    "nvd_published_at" : "2024-01-19T22:15:08Z"
  }
}