{"id":"CVE-2024-28848","published":"2024-03-15T19:55:47Z","modified":"2024-08-13T17:08:03Z","title":"SpEL Injection in `GET /api/v1/policies/validation/condition/<expr>` in OpenMetadata","vendor":"open-metadata","product":"OpenMetadata","tier":"core","eol":null,"affectedVersions":[{"vendor":"open-metadata","product":"OpenMetadata","versions":["< 1.2.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-19T16:59:58.964482Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:34:29Z"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07888,"percentile":0.94843,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-04-17","exploitedFirstSeen":"2024-04-17","ransomware":false,"evidence":[{"url":"https://www.microsoft.com/en-us/security/blog/2024/04/17/attackers-exploiting-new-critical-openmetadata-vulnerabilities-on-kubernetes-clusters/","date":"2024-04-17"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":2,"pulses":[{"name":"Russia’s Sandworm APT linked to attack on Texas water plant | SC Media","url":"https://otx.alienvault.com/pulse/662172953b276eb42fde850c","created":"2024-04-18"},{"name":"Attackers exploiting new critical OpenMetadata vulnerabilities on Kubernetes clusters | Microsoft Security Blog","url":"https://otx.alienvault.com/pulse/6620f0659fd0f3ab5526ce0d","created":"2024-04-18"}],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/open-metadata/OpenMetadata/security/advisories/GHSA-5xv3-fm7g-865r","tags":["x_refsource_CONFIRM"]},{"url":"https://codeql.github.com/codeql-query-help/java/java-spel-expression-injection","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-metadata/OpenMetadata/blob/main/openmetadata-service/src/main/java/org/openmetadata/service/security/policyevaluator/CompiledRule.java#L51","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-metadata/OpenMetadata/blob/main/openmetadata-service/src/main/java/org/openmetadata/service/security/policyevaluator/CompiledRule.java#L57","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.open-metadata:openmetadata-service","vulnerableRanges":["<1.2.4"],"patched":["1.2.4"],"from":["GHSA-5xv3-fm7g-865r"],"provenance":"source"}],"advisories":[{"id":"GHSA-5xv3-fm7g-865r","url":"https://github.com/advisories/GHSA-5xv3-fm7g-865r","severity":"HIGH","ecosystem":"Maven","package":"org.open-metadata:openmetadata-service","vulnerableRanges":["<1.2.4"],"patched":["1.2.4"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1111","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1111","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-03-15","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-28848","provenance":"source"},{"date":"2024-04-17","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.microsoft.com/en-us/security/blog/2024/04/17/attackers-exploiting-new-critical-openmetadata-vulnerabilities-on-kubernetes-clusters/","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":61.2,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 948 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.97,"detail":"percentile 0.9484"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":6.16,"detail":"base score 8.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2024-28847","published":"2024-03-15","fixed":"1.2.4","kev":false},{"cve":"CVE-2024-28848","published":"2024-03-15","fixed":"1.2.4","kev":false},{"cve":"CVE-2024-28253","published":"2024-03-15","fixed":"1.3.1","kev":false,"link":{"from":"CVE-2024-28848","to":"CVE-2024-28253","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.open-metadata:openmetadata-service","fromFixed":"1.2.4","toFixed":"1.3.1","daysApart":0},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-46481","published":"2026-06-08","fixed":"1.12.4","kev":false}],"package":"Maven:org.open-metadata:openmetadata-service"}}