GHSA-jh6x-7xfg-9cq2

Suggest an improvement
Source
https://github.com/advisories/GHSA-jh6x-7xfg-9cq2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-jh6x-7xfg-9cq2/GHSA-jh6x-7xfg-9cq2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jh6x-7xfg-9cq2
Aliases
  • CVE-2024-52797
Published
2024-11-20T22:46:53Z
Modified
2024-11-21T01:53:09.959244Z
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
Searching Opencast may cause a denial of service
Details

Impact

First noticed in Opencast 13 and 14, Opencast's Elasticsearch integration may generate syntactically invalid Elasticsearch queries in relation to previously acceptable search queries. From Opencast version 11.4 and newer, Elasticsearch queries are retried a configurable number of times in the case of error to handle temporary losses of connection to Elasticsearch. These invalid queries would fail, causing the retry mechanism to begin requerying with the same syntactically invalid query immediately, in an infinite loop. This causes a massive increase in log size which can in some cases cause a denial of service due to disk exhaustion.

Patches

Opencast 13.10 and Opencast 14.3 contain patches (https://github.com/opencast/opencast/pull/5150, and https://github.com/opencast/opencast/pull/5033) which address the base issue, with Opencast 16.7 containing changes which harmonize the search behaviour between the admin UI and external API. Users are strongly recommended to upgrade as soon as possible if running versions prior to 13.10 or 14.3. While the relevant endpoints require (by default) ROLE_ADMIN or ROLE_API_SERIES_VIEW, the problem queries are otherwise innocuous. This issue could be easily triggered by normal administrative work on an affected Opencast system. If you are running a version newer than 13.10 and 14.3 and seeing different results when searching in your admin UI vs your external API or LMS, upgrading to 16.7 should resolve the issue.

Workarounds

None identified.

References

Pull Requests - Preventing the infinite loop issue: https://github.com/opencast/opencast/pull/5150 - Sanitizing user input: https://github.com/opencast/opencast/pull/5033

If you have any questions or comments about this advisory:

Open an issue in our issue tracker Email us at security@opencast.org

Credit

Credit to Adilagha Aliyev of Graz University of Technology, Educational Technologies, adilagha.aliyev@gmail.com

References

Affected packages

Maven / org.opencastproject:opencast-elasticsearch-impl

Package

Name
org.opencastproject:opencast-elasticsearch-impl
View open source insights on deps.dev
Purl
pkg:maven/org.opencastproject/opencast-elasticsearch-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
11.4
Fixed
13.10

Affected versions

11.*

11.4
11.5
11.6
11.7
11.8
11.9
11.10
11.11

12.*

12.0
12.1
12.2
12.3
12.5
12.6
12.7
12.8
12.9
12.11
12.12
12.13

13.*

13.0
13.1
13.2
13.4
13.6
13.7
13.8

Maven / org.opencastproject:opencast-elasticsearch-impl

Package

Name
org.opencastproject:opencast-elasticsearch-impl
View open source insights on deps.dev
Purl
pkg:maven/org.opencastproject/opencast-elasticsearch-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
14.0
Fixed
14.3

Affected versions

14.*

14.0
14.1
14.2

Maven / org.opencastproject:opencast-elasticsearch-impl

Package

Name
org.opencastproject:opencast-elasticsearch-impl
View open source insights on deps.dev
Purl
pkg:maven/org.opencastproject/opencast-elasticsearch-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
15.0
Last affected
16.6

Affected versions

15.*

15.0
15.1
15.2
15.3
15.4
15.5
15.6
15.7
15.8
15.9
15.10
15.11

16.*

16.0
16.1
16.2
16.3
16.4
16.5
16.6