{"answers":{"affected":"2 open source packages ship an affected version, including org.open-metadata:openmetadata-service. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28847 exists.","fix":"Upgrade org.open-metadata:openmetadata-service to 1.2.4 or later.","what":"CVE-2024-28847 is a high-severity code injection vulnerability in open-metadata OpenMetadata, published on 15 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-28847 and fix it if it is affected.\n\nWhat it is: CVE-2024-28847 is a high-severity code injection vulnerability in open-metadata OpenMetadata, published on 15 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28847 exists.\n\nAffected packages and fixed versions:\n- org.open-metadata:openmetadata-service (Maven): affected all versions; fixed in 1.2.4\n- org.open-metadata:openmetadata-service (Maven): affected all versions; fixed in 1.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-28847/ (Markdown: https://insights.sbomify.com/CVE-2024-28847/index.md)","id":"CVE-2024-28847","markdown":"https://insights.sbomify.com/CVE-2024-28847/index.md","name":"CVE-2024-28847","record":{"aliases":["GHSA-8p5r-6mvv-2435"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenMetadata platform","requires_auth":"low_privilege","summary":"An attacker can achieve remote code execution by injecting SpEL expressions into event subscription updates before authorization checks occur.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openmetadata","vendor":"open-metadata"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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`.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"SpEL Injection in `PUT /api/v1/events/subscriptions` in OpenMetadata","id":"CVE-2024-28847","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":6,"next":{"headline":"SpEL Injection in `GET /api/v1/policies/validation/condition/\u003cexpr\u003e` in OpenMetadata","id":"CVE-2024-28848"},"packages":[{"ecosystem":"Maven","fixed":["1.2.4"],"introduced":["0"],"last_affected":[],"package":"org.open-metadata:openmetadata-service","purl":null,"source":"GHSA-8p5r-6mvv-2435"},{"ecosystem":"Maven","fixed":["1.2.4"],"introduced":["0"],"last_affected":[],"package":"org.open-metadata:openmetadata-service","purl":"pkg:maven/org.open-metadata/openmetadata-service","source":"GHSA-8p5r-6mvv-2435"}],"prev":{"headline":"An issue was discovered in Mbed TLS 3.5.x before 3.6.0.","id":"CVE-2024-28836"},"products":["OpenMetadata"],"published":"2024-03-15","related":[{"cvss_score":9.8,"headline":"Authentication Bypass in OpenMetadata","id":"CVE-2024-28255","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":9.4,"headline":"SpEL Injection in `PUT /api/v1/policies` in OpenMetadata","id":"CVE-2024-28253","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":8.8,"headline":"SpEL Injection in `GET /api/v1/events/subscriptions/validation/condition/\u003cexpr\u003e` in OpenMetadata","id":"CVE-2024-28254","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":8.8,"headline":"SpEL Injection in `GET /api/v1/policies/validation/condition/\u003cexpr\u003e` in OpenMetadata","id":"CVE-2024-28848","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":8.5,"headline":"OpenMetadata Server-Side Template Injection (SSTI) in FreeMarker email templates that leads to RCE","id":"CVE-2026-22244","kev_date_added":null,"published":"2026-01-08"},{"cvss_score":7.6,"headline":"Leaky JWTs in OpenMetadata exposing highly-privileged bot users","id":"CVE-2026-26010","kev_date_added":null,"published":"2026-02-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-27","vendors":["open-metadata"]},"summary":"An attacker can achieve remote code execution by injecting SpEL expressions into event subscription updates before authorization checks occur.","url":"https://insights.sbomify.com/CVE-2024-28847/"}