Patchfirst
CVE-2024-28848 High · 8.8 EPSS 7.9%

SpEL Injection in `GET /api/v1/policies/validation/condition/<expr>` in OpenMetadata

Fix:upgrade openmetadata-service to 1.3.1 or later also fixes CVE-2024-28253, CVE-2024-28847 Details ↓

open-metadata · OpenMetadata

Summary

A SpEL injection flaw in the GET /api/v1/policies/validation/condition/<expr> endpoint of OpenMetadata's policy validation component lets user-supplied expressions be evaluated by CompiledRule::validateExpression under a context that can reach Java classes such as java.lang.Runtime. An attacker with network access and any valid non-admin authenticated account, requiring no user interaction or special configuration, can send a crafted expression to run arbitrary operating system commands, because the affected path never calls the authorization check.

Official description · CVE.org

OpenMetadata is a unified platform for discovery, observability, and governance powered by a central metadata repository, in-depth lineage, and seamless team collaboration. The `‎CompiledRule::validateExpression` method evaluates an SpEL expression using an `StandardEvaluationContext`, allowing the expression to reach and interact with Java classes such as `java.lang.Runtime`, leading to Remote Code Execution. The `/api/v1/policies/validation/condition/<expression>` endpoint passes user-controlled data `CompiledRule::validateExpession` allowing authenticated (non-admin) users to execute arbitrary system commands on the underlaying operating system. In addition, there is a missing authorization check since `Authorizer.authorize()` is never called in the affected path and therefore any authenticated non-admin user is able to trigger this endpoint and evaluate arbitrary SpEL expressions leading to arbitrary command execution. This vulnerability was discovered with the help of CodeQL's Expression language injection (Spring) query and is also tracked as `GHSL-2023-236`. This issue may lead to Remote Code Execution and has been resolved in version 1.2.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Breakdown
61.2 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 33 days after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+33 days

4 fixes in openmetadata-service over 2 years. The latest fix listed for openmetadata-service is 1.12.4.

Fixes in openmetadata-serviceMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.2.4CVE-2024-2884715 Mar 2024
  2. 1.2.4CVE-2024-2884815 Mar 2024
  3. 1.3.1CVE-2024-2825315 Mar 2024
  4. 1.12.4CVE-2026-464818 Jun 2026Latest listed

Affected versions and fixes

as published in the CVE record

open-metadata OpenMetadata

Affected: < 1.2.4

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.open-metadata:openmetadata-service.

Mavenorg.open-metadata:openmetadata-serviceGHSA-5xv3-fm7g-865r

Upgrade to 1.3.1 or later

Fixes this CVE and 2 other known vulnerabilities in this package (CVE-2024-28253, CVE-2024-28847).

Set the version to 1.3.1 or later in your pom.xml or build.gradle.

First fixed in 1.2.4 for CVE-2024-28848.

Affected versions

If you runUpgrade to
All versions before 1.2.41.3.1first fix for this CVE: 1.2.4

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 2 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

3 links, grouped by NVD tag (1 duplicate merged)
↑ ↓ chooseEnter openEsc close