{"answers":{"affected":"2 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22053 exists.","fix":"Upgrade org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard to 2.2.10.RELEASE or later.","what":"CVE-2021-22053 is a high-severity code injection vulnerability in Spring Cloud Netflix, published on 19 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22053 and fix it if it is affected.\n\nWhat it is: CVE-2021-22053 is a high-severity code injection vulnerability in Spring Cloud Netflix, published on 19 Nov 2021. 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-2021-22053 exists.\n\nAffected packages and fixed versions:\n- org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard (Maven): affected all versions; fixed in 2.2.10.RELEASE\n- org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard (Maven): affected all versions; fixed in 2.2.10.RELEASE\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-2021-22053/ (Markdown: https://insights.sbomify.com/CVE-2021-22053/index.md)","id":"CVE-2021-22053","markdown":"https://insights.sbomify.com/CVE-2021-22053/index.md","name":"CVE-2021-22053","record":{"aliases":["GHSA-gx3f-hq7p-8fxv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Cloud Netflix","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code via SpringEL injection in Hystrix Dashboard when Thymeleaf is also present.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_cloud_netflix","vendor":"vmware"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","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":"Applications using both `spring-cloud-netflix-hystrix-dashboard` and `spring-boot-starter-thymeleaf` expose a way to execute code submitted within the request URI path during the resolution of view templates. When a request is made at `/hystrix/monitor;[user-provided data]`, the path elements following `hystrix/monitor` are being evaluated as SpringEL expressions, which can lead to code execution.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-11-21","github_poc":2,"max_poc_stars":37,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-11-21T08:47:56Z","kind":"github_poc","ref":"https://github.com/SecCoder-Security-Lab/spring-cloud-netflix-hystrix-dashboard-cve-2021-22053","stars":37,"title":"Spring Cloud Netflix Hystrix Dashboard template resolution vulnerability CVE-2021-22053"},{"date":"2021-11-22T18:26:16Z","kind":"github_poc","ref":"https://github.com/Vulnmachines/CVE-2021-22053","stars":1,"title":" CVE-2021-22053: Spring Cloud Netflix Hystrix Dashboard template resolution vulnerability"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-22053.yaml","stars":null,"title":"Spring Cloud Netflix Hystrix Dashboard \u003c2.2.10 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Code injection in spring-cloud-netflix-hystrix-dashboard","id":"CVE-2021-22053","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2021"},"n_packages":2,"n_references":1,"next":{"headline":"Omnissa Workspace ONE Server-Side Request Forgery","id":"CVE-2021-22054"},"packages":[{"ecosystem":"Maven","fixed":["2.2.10.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard","purl":null,"source":"GHSA-gx3f-hq7p-8fxv"},{"ecosystem":"Maven","fixed":["2.2.10.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-netflix-hystrix-dashboard","purl":"pkg:maven/org.springframework.cloud/spring-cloud-netflix-hystrix-dashboard","source":"GHSA-gx3f-hq7p-8fxv"}],"prev":{"headline":"Request injection in Spring Cloud Gateway","id":"CVE-2021-22051"},"products":["Spring Cloud Netflix"],"published":"2021-11-19","related":[{"cvss_score":6.5,"headline":"Hystrix Dashboard Proxy In spring-cloud-netflix-hystrix-dashboard","id":"CVE-2020-5412","kev_date_added":null,"published":"2020-08-07"}],"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"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via SpringEL injection in Hystrix Dashboard when Thymeleaf is also present.","url":"https://insights.sbomify.com/CVE-2021-22053/"}