Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1tajI0LWdwdzctMjNtOc4AA2Vb

Denial of service vulnerability on creating a Launch with too many recursively nested elements in reportportal

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), 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.

Permalink: https://github.com/advisories/GHSA-mj24-gpw7-23m9
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tajI0LWdwdzctMjNtOc4AA2Vb
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 7 months ago
Updated: 6 months ago


CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Identifiers: GHSA-mj24-gpw7-23m9, CVE-2023-25822
References: Repository: https://github.com/reportportal/reportportal
Blast Radius: 2.0

Affected Packages

maven:com.epam.reportportal:service-api
Dependent packages: 0
Dependent repositories: 2
Downloads:
Affected Version Ranges: < 5.10.0
Fixed in: 5.10.0
All affected versions: 2.6.0, 2.7.2, 3.0.1, 3.1.1, 3.2.0, 3.2.1, 3.3.2, 4.0.0, 4.1.1, 4.2.1, 4.3.10, 4.3.11, 4.3.12, 5.0.0, 5.1.0, 5.1.1, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.4, 5.3.5, 5.7.0, 5.7.1, 5.7.2, 5.7.3, 5.7.4, 5.8.0
All unaffected versions: 5.11.0