{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28254 exists.","fix":"No fix has been published for CVE-2024-28254 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-28254 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-28254 and fix it if it is affected.\n\nWhat it is: CVE-2024-28254 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-28254 exists.\n\nAffected product: open-metadata OpenMetadata. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-28254/ (Markdown: https://insights.sbomify.com/CVE-2024-28254/index.md)","id":"CVE-2024-28254","markdown":"https://insights.sbomify.com/CVE-2024-28254/index.md","name":"CVE-2024-28254","record":{"aliases":["GHSA-j86m-rrpr-g8gw"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenMetadata platform","requires_auth":"low_privilege","summary":"Authenticated non-admin users can execute arbitrary system commands via SpEL injection in the event subscription validation endpoint due to missing authorization checks.","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-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"OpenMetadata is a unified platform for discovery, observability, and governance powered by a central metadata repository, in-depth lineage, and seamless team collaboration. The `‎AlertUtil::validateExpression` method evaluates an SpEL expression using `getValue` which by default uses the `StandardEvaluationContext`, allowing the expression to reach and interact with Java classes such as `java.lang.Runtime`, leading to Remote Code Execution. The `/api/v1/events/subscriptions/validation/condition/\u003cexpression\u003e` endpoint passes user-controlled data `AlertUtil::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-235`. 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-03-15","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2024-03-15","kind":"metasploit","ref":"exploit/linux/http/openmetadata_auth_bypass_rce","stars":null,"title":"OpenMetadata authentication bypass and SpEL injection exploit chain"}],"tier":"weaponised"},"has_fix":false,"headline":"SpEL Injection in `GET /api/v1/events/subscriptions/validation/condition/\u003cexpr\u003e` in OpenMetadata","id":"CVE-2024-28254","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":5,"next":{"headline":"Authentication Bypass in OpenMetadata","id":"CVE-2024-28255"},"packages":[],"prev":{"headline":"SpEL Injection in `PUT /api/v1/policies` in OpenMetadata","id":"CVE-2024-28253"},"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 `PUT /api/v1/events/subscriptions` in OpenMetadata","id":"CVE-2024-28847","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":"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)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-13","vendors":["open-metadata"]},"summary":"Authenticated non-admin users can execute arbitrary system commands via SpEL injection in the event subscription validation endpoint due to missing authorization checks.","url":"https://insights.sbomify.com/CVE-2024-28254/"}