CVE-2024-52797: Opencast elasticsearch impl Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-jh6x-7xfg-9cq2
CVSS 6.5
CWE-770
Published
Advisory Summary

CVE-2024-52797 is a MODERATE (CVSS 6.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Opencast elasticsearch impl libraries in the Maven ecosystem. The issue involves searching opencast may cause a denial of service. Remediation is available by upgrading affected packages to version 13.10, 14.3, 16.7.

CVE-2024-52797 at a Glance

CVE Identifier CVE-2024-52797
GHSA Identifier GHSA-jh6x-7xfg-9cq2
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Opencast elasticsearch impl
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-2024-52797

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

org.opencastproject:opencast-elasticsearch-impl fixed: 13.10
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-elasticsearch-impl</artifactId>
    <version>13.10</version>
</dependency>
org.opencastproject:opencast-elasticsearch-impl fixed: 14.3
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-elasticsearch-impl</artifactId>
    <version>14.3</version>
</dependency>
org.opencastproject:opencast-elasticsearch-impl fixed: 16.7
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-elasticsearch-impl</artifactId>
    <version>16.7</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=org.opencastproject

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.opencastproject

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

Note: The mvn dependency:tree -Dincludes=org.opencastproject 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 Opencast elasticsearch impl, 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 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](https://github.com/opencast/opencast/issues) Email us at [security@opencast.org](mailto:security@opencast.org) ### Credit Credit to Adilagha Aliyev of Graz University of Technology, Educational Technologies, adilagha.aliyev@gmail.com

CVE-2024-52797 Affected Opencast elasticsearch impl Versions

3 component(s)
Fixed Versions:
13.1014.316.7
Product / Package Ecosystem Affected Versions Fixed Version
org.opencastproject:opencast-elasticsearch-impl
Maven
≥ 11.4
< 13.10
13.10
org.opencastproject:opencast-elasticsearch-impl
Maven
≥ 14.0
< 14.3
14.3
org.opencastproject:opencast-elasticsearch-impl
Maven
≥ 15.0
< 16.7
16.7

References

Frequently Asked Questions

What is CVE-2024-52797?
CVE-2024-52797 is a security vulnerability in Opencast elasticsearch impl involving Searching Opencast may cause a denial of service under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Opencast elasticsearch impl versions are affected?
Affected versions include releases prior to 13.10, 14.3, 16.7 across affected packages: org.opencastproject:opencast-elasticsearch-impl.
What version fixes CVE-2024-52797?
Upgrading to 13.10, 14.3, 16.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opencast-elasticsearch-impl affected?
Yes, org.opencastproject:opencast-elasticsearch-impl is affected in releases prior to 13.10, 14.3, 16.7. Upgrade your dependency to 13.10, 14.3, 16.7 or later.
What is the CVSS score of CVE-2024-52797?
CVE-2024-52797 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-2024-52797?
CVE-2024-52797 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-2024-52797?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.opencastproject'. 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-jh6x-7xfg-9cq2",
  "modified" : "2025-10-28T19:47:39Z",
  "published" : "2024-11-20T22:46:53Z",
  "aliases" : [ "CVE-2024-52797" ],
  "summary" : "Searching Opencast may cause a denial of service",
  "details" : "### Impact\nFirst 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.\n\n### Patches\nOpencast 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.\n\n### Workarounds\nNone identified.\n\n### References\nPull Requests\n- Preventing the infinite loop issue: https://github.com/opencast/opencast/pull/5150\n- Sanitizing user input: https://github.com/opencast/opencast/pull/5033\n\n### If you have any questions or comments about this advisory:\nOpen an issue in [our issue tracker](https://github.com/opencast/opencast/issues)\nEmail us at [security@opencast.org](mailto:security@opencast.org)\n\n### Credit\nCredit to Adilagha Aliyev of Graz University of Technology, Educational Technologies, adilagha.aliyev@gmail.com",
  "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" : "org.opencastproject:opencast-elasticsearch-impl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.4"
      }, {
        "fixed" : "13.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opencastproject:opencast-elasticsearch-impl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.0"
      }, {
        "fixed" : "14.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opencastproject:opencast-elasticsearch-impl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0"
      }, {
        "fixed" : "16.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 16.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/security/advisories/GHSA-jh6x-7xfg-9cq2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52797"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/pull/5033"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/pull/5150"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/commit/3d5ebd163674eb18e070f52b64a18f92188f98c3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opencast/opencast"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/blob/7ad05f72814f057130122904015d471cfe5f4c58/docs/guides/admin/docs/changelog/older-versions/opencast-16.md?plain=1#L74"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-20T22:46:53Z",
    "nvd_published_at" : "2024-11-21T11:15:35Z"
  }
}