CVE-2020-5228: Opencast oaipmh api Unauthenticated Access Vulnerability
HIGHCVE-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.
CVE-2020-5228 at a Glance
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).
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.
<dependency>
<groupId>org.opencastproject</groupId>
<artifactId>opencast-oaipmh-api</artifactId>
<version>7.6</version>
</dependency>
<dependency>
<groupId>org.opencastproject</groupId>
<artifactId>opencast-oaipmh-api</artifactId>
<version>8.1</version>
</dependency>
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
CVE-2020-5228 Affected Opencast oaipmh api Versions
2 component(s)| 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?
Which Opencast oaipmh api versions are affected?
What version fixes CVE-2020-5228?
Is opencast-oaipmh-api affected?
What is the CVSS score of CVE-2020-5228?
What CWE is associated with CVE-2020-5228?
How can I check Maven dependencies for CVE-2020-5228?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}