Patchfirst
CVE-2024-28253 Public exploit Critical · 9.4 EPSS 12.5%

SpEL Injection in `PUT /api/v1/policies` in OpenMetadata

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

open-metadata · OpenMetadata

Summary

A flaw in OpenMetadata's policy handling, in the PUT /api/v1/policies endpoint served by PolicyResource.createOrUpdate(), lets user-supplied rule expressions be evaluated as Spring Expression Language (SpEL) before the authorization check runs. An attacker with network access to the endpoint, and no authentication or user interaction required, can send a crafted PUT request so that the injected expression is evaluated by the server, which can lead to remote code execution.

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. `CompiledRule::validateExpression` is also called from `PolicyRepository.prepare`. `prepare()` is called from `EntityRepository.prepareInternal()` which, in turn, gets called from `EntityResource.createOrUpdate()`. Note that even though there is an authorization check (`authorizer.authorize()`), it gets called after `prepareInternal()` gets called and therefore after the SpEL expression has been evaluated. In order to reach this method, an attacker can send a PUT request to `/api/v1/policies` which gets handled by `PolicyResource.createOrUpdate()`. This vulnerability was discovered with the help of CodeQL's Expression language injection (Spring) query and is also tracked as `GHSL-2023-252`. This issue may lead to Remote Code Execution and has been addressed in version 1.3.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Breakdown
66.9 / 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.3.1

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-7vf4-x5m2-r6gr

Upgrade to 1.3.1 or later

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

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

The first fix for CVE-2024-28253.

Affected versions

If you runUpgrade to
All versions before 1.3.11.3.1

“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

6 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close