Vulnerabilities in pkg:maven/org.opencastproject/opencast-oaipmh-api

PACKAGE
Advisory Identifier: GHSA-6f54-3qr9-pjgj
Advisory Summary

CVE-2020-5228 is a HIGH (CVSS 7.6) unauthenticated access vulnerability (CWE-862: Missing Authorization) affecting Opencast oaipmh api libraries in the Maven ecosystem. The issue involves unauthenticated access via oai-pmh. Remediation is available by upgrading affected packages to version 7.6, 8.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.opencastproject/opencast-oaipmh-api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.opencastproject/opencast-oaipmh-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6f54-3qr9-pjgj CVE-2020-5228 HIGH Unauthenticated Access Via OAI-PMH

CVE-2020-5228 at a Glance

CVE Identifier CVE-2020-5228
GHSA Identifier GHSA-6f54-3qr9-pjgj
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-862: Missing Authorization
Affected Product Opencast oaipmh api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.6

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:R/S:C/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-5228

To remediate this vulnerability, upgrade all affected Opencast oaipmh api 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-oaipmh-api fixed: 7.6
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-oaipmh-api</artifactId>
    <version>7.6</version>
</dependency>
org.opencastproject:opencast-oaipmh-api fixed: 8.1
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-oaipmh-api</artifactId>
    <version>8.1</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-2020-5228, 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 oaipmh api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.6), 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Opencast oaipmh api, 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 Media publication via OAI-PMH allows unauthenticated public access to all media and metadata by default. OAI-PMH is part of the default workflow and is activated by default, requiring active user intervention of users to protect media. This leads to users unknowingly handing out public access to events without their knowledge. ### Patches The problem has been addressed in Opencast 7.6 and 8.1 where the OAI-PMH endpoint is configured to require users with `ROLE_ADMIN` by default. In addition to this, Opencast 9 removes the OAI-PMH publication from the default workflow, making the publication a conscious decision users have to make by updating their workflows. ### Workarounds In the organization security configuration (`etc/security/mh_default_org.xml`), change the roles required for accessing `/oaipmh` from `ROLE_ANONYMOUS` to `ROLE_ADMIN`. ### References - [Public access configuration in the organization's security configuration](https://github.com/opencast/opencast/blob/1fb812c7810c78f09f29a7f455ff920417924307/etc/security/mh_default_org.xml#L271-L276) ### For more information If you have any questions or comments about this advisory: - Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues) - For security-relevant information, email us at security@opencast.org

CVE-2020-5228 Affected Opencast oaipmh api Versions

2 component(s)
Fixed Versions:
7.68.1
Product / Package Ecosystem Affected Versions Fixed Version
org.opencastproject:opencast-oaipmh-api
Maven
< 7.6
7.6
org.opencastproject:opencast-oaipmh-api
Maven
≥ 8.0
< 8.1
8.1

References

Frequently Asked Questions

What is CVE-2020-5228?
CVE-2020-5228 is a security vulnerability in Opencast oaipmh api involving Unauthenticated Access Via OAI-PMH under CWE-862: Missing Authorization.
Which Opencast oaipmh api versions are affected?
Affected versions include releases prior to 7.6, 8.1 across affected packages: org.opencastproject:opencast-oaipmh-api.
What version fixes CVE-2020-5228?
Upgrading to 7.6, 8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opencast-oaipmh-api affected?
Yes, org.opencastproject:opencast-oaipmh-api is affected in releases prior to 7.6, 8.1. Upgrade your dependency to 7.6, 8.1 or later.
What is the CVSS score of CVE-2020-5228?
CVE-2020-5228 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2020-5228?
CVE-2020-5228 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2020-5228?
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-6f54-3qr9-pjgj",
  "modified" : "2021-01-08T20:32:00Z",
  "published" : "2020-01-30T21:22:06Z",
  "aliases" : [ "CVE-2020-5228" ],
  "summary" : "Unauthenticated Access Via OAI-PMH",
  "details" : "### Impact\n\nMedia publication via OAI-PMH allows unauthenticated public access to all media and metadata by default. OAI-PMH is part of the default workflow and is activated by default, requiring active user intervention of users to protect media. This leads to users unknowingly handing out public access to events without their knowledge.\n\n\n### Patches\n\nThe problem has been addressed in Opencast 7.6 and 8.1 where the OAI-PMH endpoint is configured to require users with `ROLE_ADMIN` by default. In addition to this, Opencast 9 removes the OAI-PMH publication from the default workflow, making the publication a conscious decision users have to make by updating their workflows.\n\n### Workarounds\n\nIn the organization security configuration (`etc/security/mh_default_org.xml`), change the roles required for accessing `/oaipmh` from `ROLE_ANONYMOUS` to `ROLE_ADMIN`.\n\n### References\n\n- [Public access configuration in the organization's security configuration](https://github.com/opencast/opencast/blob/1fb812c7810c78f09f29a7f455ff920417924307/etc/security/mh_default_org.xml#L271-L276)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues)\n- For security-relevant information, email us at security@opencast.org",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opencastproject:opencast-oaipmh-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opencastproject:opencast-oaipmh-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0"
      }, {
        "fixed" : "8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/security/advisories/GHSA-6f54-3qr9-pjgj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-5228"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/blob/1fb812c7810c78f09f29a7f455ff920417924307/etc/security/mh_default_org.xml#L271-L276"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-01-30T19:48:30Z",
    "nvd_published_at" : null
  }
}