GHSA-mj24-gpw7-23m9

Suggest an improvement
Source
https://github.com/advisories/GHSA-mj24-gpw7-23m9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-mj24-gpw7-23m9/GHSA-mj24-gpw7-23m9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mj24-gpw7-23m9
Aliases
Published
2023-10-10T18:28:11Z
Modified
2024-02-16T08:19:24.647431Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Denial of service vulnerability on creating a Launch with too many recursively nested elements in reportportal
Details

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 pathgistidx 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 (pathgistidx and path_idx), the database becomes stable and ReportPortal is working properly.

References

Affected packages

Maven / com.epam.reportportal:service-api

Package

Name
com.epam.reportportal:service-api
View open source insights on deps.dev
Purl
pkg:maven/com.epam.reportportal/service-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.0

Affected versions

2.*

2.6.0
2.7.2

3.*

3.0.1
3.1.1
3.2.0
3.2.1
3.3.2

4.*

4.0.0
4.1.1
4.2.1
4.3.10
4.3.11
4.3.12

5.*

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