{"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-28848 exists.","fix":"Upgrade org.open-metadata:openmetadata-service to 1.2.4 or later.","what":"CVE-2024-28848 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-28848 and fix it if it is affected.\n\nWhat it is: CVE-2024-28848 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-28848 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-28848/ (Markdown: https://insights.sbomify.com/CVE-2024-28848/index.md)","id":"CVE-2024-28848","markdown":"https://insights.sbomify.com/CVE-2024-28848/index.md","name":"CVE-2024-28848","record":{"aliases":["GHSA-5xv3-fm7g-865r"],"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 policy 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-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. The `‎CompiledRule::validateExpression` method evaluates an SpEL expression using an `StandardEvaluationContext`, allowing the expression to reach and interact with Java classes such as `java.lang.Runtime`, leading to Remote Code Execution. The `/api/v1/policies/validation/condition/\u003cexpression\u003e` endpoint passes user-controlled data `CompiledRule::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-236`. This issue may lead to Remote Code Execution and has been resolved in version 1.2.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.","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 `GET /api/v1/policies/validation/condition/\u003cexpr\u003e` in OpenMetadata","id":"CVE-2024-28848","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"Proxy-Authorization header kept across hosts in follow-redirects","id":"CVE-2024-28849"},"packages":[{"ecosystem":"Maven","fixed":["1.2.4"],"introduced":["0"],"last_affected":[],"package":"org.open-metadata:openmetadata-service","purl":null,"source":"GHSA-5xv3-fm7g-865r"},{"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-5xv3-fm7g-865r"}],"prev":{"headline":"SpEL Injection in `PUT /api/v1/events/subscriptions` in OpenMetadata","id":"CVE-2024-28847"},"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 `PUT /api/v1/events/subscriptions` in OpenMetadata","id":"CVE-2024-28847","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-13","vendors":["open-metadata"]},"summary":"Authenticated non-admin users can execute arbitrary system commands via SpEL injection in the policy validation endpoint due to missing authorization checks.","url":"https://insights.sbomify.com/CVE-2024-28848/"}