CVE-2024-52797 is a medium-severity (CVSS 6.5) CWE-770 vulnerability in org.opencastproject:opencast-elasticsearch-impl. A fix is available for org.opencastproject:opencast-elasticsearch-impl — see the affected versions and patch details below.
Searching Opencast may cause a denial of service
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-52797.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.opencastproject:opencast-elasticsearch-impl☕org.opencastproject:opencast-elasticsearch-impl☕org.opencastproject:opencast-elasticsearch-implReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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 [email protected]
Credit
Credit to Adilagha Aliyev of Graz University of Technology, Educational Technologies, [email protected]
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.opencastproject:opencast-elasticsearch-impl | ≥ 11.4&&< 13.10 | 13.10org.opencastproject:opencast-elasticsearch-impl:13.10 |
| ☕Maven | org.opencastproject:opencast-elasticsearch-impl | ≥ 14.0&&< 14.3 | 14.3org.opencastproject:opencast-elasticsearch-impl:14.3 |
| ☕Maven | org.opencastproject:opencast-elasticsearch-impl | ≥ 15.0&&< 16.7 | 16.7org.opencastproject:opencast-elasticsearch-impl:16.7 |
Affected Products
opencastapereoDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.opencastproject:opencast-elasticsearch-impl, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.opencastproject:opencast-elasticsearch-impl to 13.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-52797 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2024-52797 in your dependencies?
Find it across Maven, including transitive dependencies.