Patchfirst
CVE-2024-28847 High · 8.8 EPSS 2.4%

SpEL Injection in `PUT /api/v1/events/subscriptions` in OpenMetadata

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

open-metadata · OpenMetadata

Summary

The flaw is a SpEL (Spring Expression Language) injection in the PUT /api/v1/events/subscriptions endpoint of OpenMetadata, where the expression validation performed by AlertUtil::validateExpression during event subscription preparation evaluates attacker-supplied input. An attacker with network access and low-privilege authenticated credentials can send a crafted PUT request to trigger evaluation of the expression before the authorization check runs, which can lead to remote code execution with no user interaction or special configuration required.

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. Similarly to the GHSL-2023-250 issue, `AlertUtil::validateExpression` is also called from `EventSubscriptionRepository.prepare()`, which can lead to Remote Code Execution. `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/events/subscriptions` which gets handled by `EventSubscriptionResource.createOrUpdateEventSubscription()`. This vulnerability was discovered with the help of CodeQL's Expression language injection (Spring) query. This issue may lead to Remote Code Execution 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-251`.

Breakdown
59.1 / 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

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-8p5r-6mvv-2435

Upgrade to 1.3.1 or later

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

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-28847.

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

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