{"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-28253 exists.","fix":"Upgrade org.open-metadata:openmetadata-service to 1.3.1 or later.","what":"CVE-2024-28253 is a critical code injection vulnerability in open-metadata OpenMetadata, published on 15 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-28253 and fix it if it is affected.\n\nWhat it is: CVE-2024-28253 is a critical code injection vulnerability in open-metadata OpenMetadata, published on 15 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28253 exists.\n\nAffected packages and fixed versions:\n- org.open-metadata:openmetadata-service (Maven): affected all versions; fixed in 1.3.1\n- org.open-metadata:openmetadata-service (Maven): affected all versions; fixed in 1.3.1\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-28253/ (Markdown: https://insights.sbomify.com/CVE-2024-28253/index.md)","id":"CVE-2024-28253","markdown":"https://insights.sbomify.com/CVE-2024-28253/index.md","name":"CVE-2024-28253","record":{"aliases":["GHSA-7vf4-x5m2-r6gr"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenMetadata platform","requires_auth":"none","summary":"An attacker can achieve remote code execution by injecting Spring Expression Language payloads into policy creation requests 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":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","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. `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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-28253.yaml","stars":null,"title":"OpenMetaData - SpEL Injection in PUT /api/v1/policies"}],"tier":"weaponised"},"has_fix":true,"headline":"SpEL Injection in `PUT /api/v1/policies` in OpenMetadata","id":"CVE-2024-28253","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/events/subscriptions/validation/condition/\u003cexpr\u003e` in OpenMetadata","id":"CVE-2024-28254"},"packages":[{"ecosystem":"Maven","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"org.open-metadata:openmetadata-service","purl":null,"source":"GHSA-7vf4-x5m2-r6gr"},{"ecosystem":"Maven","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"org.open-metadata:openmetadata-service","purl":"pkg:maven/org.open-metadata/openmetadata-service","source":"GHSA-7vf4-x5m2-r6gr"}],"prev":{"headline":"CoreWCF NetFraming based services can leave connections open when they should be closed","id":"CVE-2024-28252"},"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":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.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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-28","vendors":["open-metadata"]},"summary":"An attacker can achieve remote code execution by injecting Spring Expression Language payloads into policy creation requests before authorization checks occur.","url":"https://insights.sbomify.com/CVE-2024-28253/"}