{"id":"CVE-2024-28253","published":"2024-03-15T19:55:39Z","modified":"2024-08-28T16:21:59Z","title":"SpEL Injection in `PUT /api/v1/policies` in OpenMetadata","vendor":"open-metadata","product":"OpenMetadata","tier":"core","eol":null,"affectedVersions":[{"vendor":"open-metadata","product":"OpenMetadata","versions":["< 1.3.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-03-18T14:54:13.753112Z","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. `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.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:12:03Z"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.12527,"percentile":0.96327,"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-7vf4-x5m2-r6gr","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/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java#L693","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/resources/EntityResource.java#L219","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/resources/policies/PolicyResource.java#L365","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-metadata/OpenMetadata/blob/main/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/PolicyRepository.java#L113","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.open-metadata:openmetadata-service","vulnerableRanges":["<1.3.1"],"patched":["1.3.1"],"from":["GHSA-7vf4-x5m2-r6gr"],"provenance":"source"}],"advisories":[{"id":"GHSA-7vf4-x5m2-r6gr","url":"https://github.com/advisories/GHSA-7vf4-x5m2-r6gr","severity":"CRITICAL","ecosystem":"Maven","package":"org.open-metadata:openmetadata-service","vulnerableRanges":["<1.3.1"],"patched":["1.3.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1147","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1147","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2024-28253","name":"OpenMetaData - SpEL Injection in PUT /api/v1/policies","severity":"critical","path":"http/cves/2024/CVE-2024-28253.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-28253.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-03-15","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-28253","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":66.9,"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":19.27,"detail":"percentile 0.9633"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":6.58,"detail":"base score 9.4"},{"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,"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-2024-28253","published":"2024-03-15","fixed":"1.3.1","kev":false},{"cve":"CVE-2026-46481","published":"2026-06-08","fixed":"1.12.4","kev":false}],"package":"Maven:org.open-metadata:openmetadata-service"}}