Opencast has a partial path traversal vulnerability in UI config
Description
Opencast is a free, open-source platform to support the management of educational audio and video content. In version 18.0 and versions before 17.7, the protections against path traversal attacks in the UI config module are insufficient, still partially allowing for attacks in very specific cases. The path is checked without checking for the file separator. This could allow attackers access to files within another folder which starts with the same path. This issue has been fixed in versions 17.7 and 18.1. To mitigate this issue, check for folders that start with the same path as the ui-config folder.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.opencastproject:opencast-user-interface-configurationMaven | < 17.7 | 17.7 |
org.opencastproject:opencast-user-interface-configurationMaven | >= 18.0, < 18.1 | 18.1 |
Affected products
1Patches
1e2cc65d6fbe0Fix partial path traversal vulnerability in UI config (#6979)
1 file changed · +1 −1
modules/user-interface-configuration/src/main/java/org/opencastproject/uiconfig/UIConfigRest.java+1 −1 modified@@ -166,7 +166,7 @@ public Response getConfigFile(@PathParam("component") String component, @PathPar File configFile = Paths.get(uiConfigFolder, orgId, component, filename).toFile(); try { - final String basePath = new File(uiConfigFolder, orgId).getCanonicalPath(); + final String basePath = new File(uiConfigFolder, orgId).getCanonicalPath() + File.separator; final String configFileCanPath = configFile.getCanonicalPath(); // is configFile a subdirectory of basePath (additional directory traversal protection), if not stop
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-hq8m-v68g-8cf8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-55202ghsaADVISORY
- github.com/opencast/opencast/commit/e2cc65d6fbe052ebb71d9f6b583bb54b181af009ghsax_refsource_MISCWEB
- github.com/opencast/opencast/pull/6979ghsax_refsource_MISCWEB
- github.com/opencast/opencast/security/advisories/GHSA-hq8m-v68g-8cf8ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.