CVE-2024-28847 json
SpEL Injection in `PUT /api/v1/events/subscriptions` in OpenMetadata
published 2024-03-15 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1162 , GHSA-8p5r-6mvv-2435
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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`.
Patch / fix
- maven org.open-metadata:openmetadata-service 1.2.4
- openmetadata openmetadata 1.2.4
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
2.37% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/open-metadata/OpenMetadata/security/advisories/GHSA-8p5r-6mvv-2435 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.open-metadata:openmetadata-service | <1.2.4 |
1.2.4 |
Affected products
- open-metadata OpenMetadata
- openmetadata openmetadata
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/open-metadata/OpenMetadata/security/advisories/GHSA-8p5r-6mvv-2435
web, exploit, vendor-advisory
-
codeql.github.com
/codeql-query-help/java/java-spel-expression-injection
web, not-applicable
-
github.com
/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/o
web, product
-
github.com
/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/o
web, product
-
github.com
/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/o
web, product
-
github.com
/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/o
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-28847
advisory
-
github.com
/open-metadata/OpenMetadata
package
-
securitylab.github.com
/advisories/GHSL-2023-235_GHSL-2023-237_Open_Metadata
advisory
Sources
- CVE List CVE-2024-28847
- GitHub Advisory GHSA-8p5r-6mvv-2435
- NVD CVE-2024-28847
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.