Vulnerabilities · 2024 · Open-metadata
CVE-2024-28255
Open-metadata Openmetadata vulnerability
OpenMetadata is a unified platform for discovery, observability, and governance powered by a central metadata repository, in-depth lineage, and seamless team collaboration. The `JwtFilter` handles the API authentication by requiring and verifying JWT tokens. When a new request comes in, the request's path is checked against this list. When the request's path contains any of the excluded endpoints the filter returns without validating the JWT. Unfortunately, an attacker may use Path Parameters to make any path contain any arbitrary strings. For example, a request to `GET /api/v1;v1%2fusers%2flogin/events/subscriptions/validation/condition/111` will match the excluded endpoint condition and therefore will be processed with no JWT validation allowing an attacker to bypass the authentication mechanism and reach any arbitrary endpoint, including the ones listed above that lead to arbitrary SpEL expression injection. This bypass will not work when the endpoint uses the `SecurityContext.getUserPrincipal()` since it will return `null` and will throw an NPE. This issue may lead to authentication bypass and has been addressed in version 1.2.4. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as `GHSL-2023-237`.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Openmetadata. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Open-metadata Openmetadata runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/open-metadata/OpenMetadata/security/advisories/GHSA-6wx7-qw5p-wh84 · Exploit
- www.vicarius.io/vsociety/posts/authentication-bypass-with-path-parameter-in-openmetadata-c · Exploit
- github.com/open-metadata/OpenMetadata/blob/e2043a3f31312ebb42391d6c93a67584d798de52/openme
- github.com/open-metadata/OpenMetadata/blob/e2043a3f31312ebb42391d6c93a67584d798de52/openme
- nvd.nist.gov/vuln/detail/CVE-2024-28255
- cve.org/CVERecord?id=CVE-2024-28255
More vulnerabilities in Open-metadata products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.