Vulnerabilities in pkg:maven/org.glassfish.main.admin/rest-service

PACKAGE
Advisory Identifier: GHSA-jq3f-mfmg-747x
Advisory Summary

CVE-2024-9329 is a MODERATE (CVSS 5.3) eclipse glassfish improperly handles http vulnerability (CWE-233: Improper Handling of Parameters) affecting Rest service libraries in the Maven ecosystem. The issue involves eclipse glassfish improperly handles http parameters. Remediation is available by upgrading affected packages to version 7.0.17.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.glassfish.main.admin/rest-service

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.glassfish.main.admin/rest-service. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jq3f-mfmg-747x CVE-2024-9329 MODERATE Eclipse Glassfish improperly handles http parameters

CVE-2024-9329 at a Glance

CVE Identifier CVE-2024-9329
GHSA Identifier GHSA-jq3f-mfmg-747x
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-233: Improper Handling of Parameters
Affected Product Rest service
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-2024-9329

To remediate this vulnerability, upgrade all affected Rest service 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.glassfish.main.admin:rest-service fixed: 7.0.17
<dependency>
    <groupId>org.glassfish.main.admin</groupId>
    <artifactId>rest-service</artifactId>
    <version>7.0.17</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.glassfish.main.admin

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.glassfish.main.admin

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

Note: The mvn dependency:tree -Dincludes=org.glassfish.main.admin 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-233: Improper Handling of Parameters, where the product does not properly handle when the expected number of parameters, fields, or arguments is not provided in input, or if those parameters are undefined. In Rest service, 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 Eclipse Glassfish versions before 7.0.17, the Host HTTP parameter could cause the web application to redirect to the specified URL, when the requested endpoint is `/management/domain`. By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials.

CVE-2024-9329 Affected Rest service Versions

1 component(s)
Fixed Versions:
7.0.17
Product / Package Ecosystem Affected Versions Fixed Version
org.glassfish.main.admin:rest-service
Maven
< 7.0.17
7.0.17

References

Frequently Asked Questions

What is CVE-2024-9329?
CVE-2024-9329 is a security vulnerability in Rest service involving Eclipse Glassfish improperly handles http parameters under CWE-233: Improper Handling of Parameters.
Which Rest service versions are affected?
Affected versions include releases prior to 7.0.17 across affected packages: org.glassfish.main.admin:rest-service.
What version fixes CVE-2024-9329?
Upgrading to 7.0.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rest-service affected?
Yes, org.glassfish.main.admin:rest-service is affected in releases prior to 7.0.17. Upgrade your dependency to 7.0.17 or later.
What is the CVSS score of CVE-2024-9329?
CVE-2024-9329 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-2024-9329?
CVE-2024-9329 is classified under CWE-233: Improper Handling of Parameters (The product does not properly handle when the expected number of parameters, fields, or arguments is not provided in input, or if those parameters are undefined.).
How can I check Maven dependencies for CVE-2024-9329?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.glassfish.main.admin'. 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-jq3f-mfmg-747x",
  "modified" : "2024-10-07T18:52:19Z",
  "published" : "2024-09-30T09:30:47Z",
  "aliases" : [ "CVE-2024-9329" ],
  "summary" : "Eclipse Glassfish improperly handles http parameters",
  "details" : "In Eclipse Glassfish versions before 7.0.17, the Host HTTP parameter could cause the web application to redirect to the specified URL, when the requested endpoint is `/management/domain`. By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.glassfish.main.admin:rest-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-9329"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-ee4j/glassfish/pull/25106"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-ee4j/glassfish/commit/6ca35eee2ba90a8108984b27bec33f9cc50cd83b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/eclipse-ee4j/glassfish"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/232"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-233", "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-30T17:13:15Z",
    "nvd_published_at" : "2024-09-30T08:15:05Z"
  }
}