{"id":"CVE-2024-28847","published":"2024-03-15T19:55:43Z","modified":"2024-08-27T19:40:47Z","title":"SpEL Injection in `PUT /api/v1/events/subscriptions` 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-08-27T19:38:17.869404Z","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. 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`.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:18Z"},"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.02372,"percentile":0.84246,"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-8p5r-6mvv-2435","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/jdbi3/EventSubscriptionRepository.java#L69-L83","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/events/subscription/EventSubscriptionResource.java#L289","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-8p5r-6mvv-2435"],"provenance":"source"}],"advisories":[{"id":"GHSA-8p5r-6mvv-2435","url":"https://github.com/advisories/GHSA-8p5r-6mvv-2435","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-1162","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1162","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-28847","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":59.1,"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":16.85,"detail":"percentile 0.8425"},{"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"}]}}