{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-28253","id":"CVE-2024-28253","title":"SpEL Injection in `PUT /api/v1/policies` in OpenMetadata","description":"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 ev","descriptionLong":"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.","published":"2024-03-15T19:55:39.720Z","updated":"2026-10-28T02:30:46.397546600Z","reserved":"2024-03-07T14:33:30.036Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"OSV"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"GitHub"}],"rating":"critical","products":["open-metadata OpenMetadata"],"affectedProducts":[{"vendor":"open-metadata","product":"OpenMetadata","defaultStatus":null,"versions":[{"version":"< 1.3.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.open-metadata:openmetadata-service","purl":"pkg:maven/org.open-metadata/openmetadata-service","ranges":["<1.3.1"],"fixed":["1.3.1"],"advisory":"GHSA-7vf4-x5m2-r6gr"}],"cwes":["CWE-94"],"aliases":["GHSA-7vf4-x5m2-r6gr"],"references":[{"url":"https://github.com/open-metadata/OpenMetadata/security/advisories/GHSA-7vf4-x5m2-r6gr","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://codeql.github.com/codeql-query-help/java/java-spel-expression-injection","tags":["x_refsource_MISC","x_transferred","Not Applicable","web"]},{"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","x_transferred","Product","web"]},{"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","x_transferred","Product","web"]},{"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","x_transferred","Product","web"]},{"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","x_transferred","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28253.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28253","tags":["advisory"]},{"url":"https://github.com/open-metadata/OpenMetadata","tags":["package"]},{"url":"https://securitylab.github.com/advisories/GHSL-2023-235_GHSL-2023-237_Open_Metadata","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.12527,"epssPercentile":0.96316,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-28253","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28253","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-28253","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7vf4-x5m2-r6gr","ok":true,"note":"GHSA-7vf4-x5m2-r6gr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-28253","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 13% with CVSS 9.4"],"attention":null}