CVE-2024-28848 json
SpEL Injection in `GET /api/v1/policies/validation/condition/<expr>` in OpenMetadata
published 2024-03-15 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1111 , GHSA-5xv3-fm7g-865r
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.9%
- EPSS 7.9% chance of exploitation in 30 days, percentile 94%
- 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. 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.
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
7.89% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
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-5xv3-fm7g-865r
web, vendor-advisory
-
codeql.github.com
/codeql-query-help/java/java-spel-expression-injection
web, not-applicable
-
github.com
/open-metadata/OpenMetadata/blob/main/openmetadata-service/src/main/java/org/openmetadata/service/security/pol
web, product
-
github.com
/open-metadata/OpenMetadata/blob/main/openmetadata-service/src/main/java/org/openmetadata/service/security/pol
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-28848
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-28848
- GitHub Advisory GHSA-5xv3-fm7g-865r
- NVD CVE-2024-28848
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.