{"answers":{"affected":"6 open source packages ship an affected version, including de.codecentric:spring-boot-admin. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46166 in the wild and no public exploit code.","fix":"Upgrade de.codecentric:spring-boot-admin to a fixed version for your release line: 2.6.10, 2.7.8 or 3.0.0-M6.","what":"CVE-2022-46166 is a high-severity code injection vulnerability in codecentric spring-boot-admin, published on 9 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-46166 and fix it if it is affected.\n\nWhat it is: CVE-2022-46166 is a high-severity code injection vulnerability in codecentric spring-boot-admin, published on 9 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-46166 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- de.codecentric:spring-boot-admin (Maven): affected all versions; fixed in 2.6.10\n- de.codecentric:spring-boot-admin (Maven): affected all versions; fixed in 2.6.10\n- de.codecentric:spring-boot-admin (Maven): affected from 2.7.0; fixed in 2.7.8\n- de.codecentric:spring-boot-admin (Maven): affected from 2.7.0; fixed in 2.7.8\n- de.codecentric:spring-boot-admin (Maven): affected from 3.0.0-M1; fixed in 3.0.0-M6\n- de.codecentric:spring-boot-admin (Maven): affected from 3.0.0-M1; fixed in 3.0.0-M6\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-2022-46166/ (Markdown: https://insights.sbomify.com/CVE-2022-46166/index.md)","id":"CVE-2022-46166","markdown":"https://insights.sbomify.com/CVE-2022-46166/index.md","name":"CVE-2022-46166","record":{"aliases":["GHSA-w3x5-427h-wfq6"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Boot Admin","requires_auth":"low_privilege","summary":"Attackers with write access to environment variables can execute arbitrary code via integrated notifiers in Spring Boot Admin.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"spring_boot_admin","vendor":"codecentric"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Spring boot admins is an open source administrative user interface for management of spring boot applications. All users who run Spring Boot Admin Server, having enabled Notifiers (e.g. Teams-Notifier) and write access to environment variables via UI are affected. Users are advised to upgrade to the most recent releases of Spring Boot Admin 2.6.10 and 2.7.8 to resolve this issue. Users unable to upgrade may disable any notifier or disable write access (POST request) on `/env` actuator endpoint.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-17","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-17T07:15:15Z","kind":"github_poc","ref":"https://github.com/shoucheng3/codecentric__spring-boot-admin_CVE-2022-46166_2-6-9","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Spring Boot Admins integrated notifier support allows arbitrary code execution","id":"CVE-2022-46166","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":6,"n_references":2,"next":{"headline":"Capsule vulnerable to privilege escalation by ServiceAccount deployed in a Tenant Namespace","id":"CVE-2022-46167"},"packages":[{"ecosystem":"Maven","fixed":["2.6.10"],"introduced":["0"],"last_affected":[],"package":"de.codecentric:spring-boot-admin","purl":null,"source":"GHSA-w3x5-427h-wfq6"},{"ecosystem":"Maven","fixed":["2.6.10"],"introduced":["0"],"last_affected":[],"package":"de.codecentric:spring-boot-admin","purl":"pkg:maven/de.codecentric/spring-boot-admin","source":"GHSA-w3x5-427h-wfq6"},{"ecosystem":"Maven","fixed":["2.7.8"],"introduced":["2.7.0"],"last_affected":[],"package":"de.codecentric:spring-boot-admin","purl":null,"source":"GHSA-w3x5-427h-wfq6"},{"ecosystem":"Maven","fixed":["2.7.8"],"introduced":["2.7.0"],"last_affected":[],"package":"de.codecentric:spring-boot-admin","purl":"pkg:maven/de.codecentric/spring-boot-admin","source":"GHSA-w3x5-427h-wfq6"},{"ecosystem":"Maven","fixed":["3.0.0-M6"],"introduced":["3.0.0-M1"],"last_affected":[],"package":"de.codecentric:spring-boot-admin","purl":null,"source":"GHSA-w3x5-427h-wfq6"},{"ecosystem":"Maven","fixed":["3.0.0-M6"],"introduced":["3.0.0-M1"],"last_affected":[],"package":"de.codecentric:spring-boot-admin","purl":"pkg:maven/de.codecentric/spring-boot-admin","source":"GHSA-w3x5-427h-wfq6"}],"prev":{"headline":"Cross-site Scripting (XSS) in Web GUI in syncthing","id":"CVE-2022-46165"},"products":["spring-boot-admin"],"published":"2022-12-09","related":[{"cvss_score":7.5,"headline":"Spring-boot-admin sandbox bypass via crafted HTML","id":"CVE-2023-38286","kev_date_added":null,"published":"2023-07-14"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["codecentric"]},"summary":"Attackers with write access to environment variables can execute arbitrary code via integrated notifiers in Spring Boot Admin.","url":"https://insights.sbomify.com/CVE-2022-46166/"}