Vulnerabilities in pkg:maven/com.epam.reportportal/service-api

PACKAGE
Advisory Identifier: GHSA-mj24-gpw7-23m9
Advisory Summary

CVE-2023-25822 is a MODERATE (CVSS 6.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Service api libraries in the Maven ecosystem. The issue involves denial of service vulnerability on creating a launch with too many recursively nested elements in reportportal. Remediation is available by upgrading affected packages to version 5.10.0.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.epam.reportportal/service-api

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.epam.reportportal/service-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mj24-gpw7-23m9 CVE-2023-25822 MODERATE Denial of service vulnerability on creating a Launch with too many recursively nested elements in reportportal
GHSA-2jx8-v4hv-gx3h CVE-2020-12642 HIGH XXE vulnerability in Launch import
GHSA-7qfm-6m33-rgg9 - HIGH XML External Entity Reference
GHSA-24wf-7vf2-pv59 CVE-2021-29620 HIGH XXE vulnerability on Launch import with externally-defined DTD file

CVE-2023-25822 at a Glance

CVE Identifier CVE-2023-25822
GHSA Identifier GHSA-mj24-gpw7-23m9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Service api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-25822

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

com.epam.reportportal:service-api fixed: 5.10.0
<dependency>
    <groupId>com.epam.reportportal</groupId>
    <artifactId>service-api</artifactId>
    <version>5.10.0</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=com.epam.reportportal

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.epam.reportportal

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

Note: The mvn dependency:tree -Dincludes=com.epam.reportportal 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Service api, 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 ReportPortal database becomes unstable and reporting almost fully stops except for small launches with approximately 1 test inside when the test_item.path field is exceeded the allowable "ltree" field type indexing limit (path length>=120 approximately, recursive nesting of the nested steps). REINDEX INDEX path_gist_idx and path_idx aren't helped. ### Patches The problem was fixed in `service-api` module of version `5.10.0` (product release [23.2](https://reportportal.io/docs/releases/Version23.2/)), where the maximum number of nested elements were programmatically limited. ### Workarounds After deletion of the data with long paths, and reindexing both indexes (path_gist_idx and path_idx), the database becomes stable and ReportPortal is working properly.

CVE-2023-25822 Affected Service api Versions

1 component(s)
Fixed Versions:
5.10.0
Product / Package Ecosystem Affected Versions Fixed Version
com.epam.reportportal:service-api
Maven
< 5.10.0
5.10.0

References

Frequently Asked Questions

What is CVE-2023-25822?
CVE-2023-25822 is a security vulnerability in Service api involving Denial of service vulnerability on creating a Launch with too many recursively nested elements in reportportal under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Service api versions are affected?
Affected versions include releases prior to 5.10.0 across affected packages: com.epam.reportportal:service-api.
What version fixes CVE-2023-25822?
Upgrading to 5.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is service-api affected?
Yes, com.epam.reportportal:service-api is affected in releases prior to 5.10.0. Upgrade your dependency to 5.10.0 or later.
What is the CVSS score of CVE-2023-25822?
CVE-2023-25822 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-25822?
CVE-2023-25822 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2023-25822?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.epam.reportportal'. 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-mj24-gpw7-23m9",
  "modified" : "2023-10-13T20:28:09Z",
  "published" : "2023-10-10T18:28:11Z",
  "aliases" : [ "CVE-2023-25822" ],
  "summary" : "Denial of service vulnerability on creating a Launch with too many recursively nested elements in reportportal",
  "details" : "### Impact\nReportPortal database becomes unstable and reporting almost fully stops except for small launches with approximately 1 test inside when the test_item.path field is exceeded the allowable \"ltree\" field type indexing limit (path length>=120 approximately, recursive nesting of the nested steps). \n\nREINDEX INDEX path_gist_idx and path_idx aren't helped. \n\n### Patches\nThe problem was fixed in `service-api` module of version `5.10.0` (product release [23.2](https://reportportal.io/docs/releases/Version23.2/)), where the maximum number of nested elements were programmatically limited.\n\n### Workarounds\nAfter deletion of the data with long paths, and reindexing both indexes (path_gist_idx and path_idx), the database becomes stable and ReportPortal is working properly.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.epam.reportportal:service-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/reportportal/reportportal/security/advisories/GHSA-mj24-gpw7-23m9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25822"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/reportportal/reportportal"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/reportportal/reportportal/releases/tag/v23.2"
  }, {
    "type" : "WEB",
    "url" : "https://reportportal.io/docs/releases/Version23.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-10T18:28:11Z",
    "nvd_published_at" : "2023-10-09T14:15:10Z"
  }
}