{"answers":{"affected":"2 open source packages ship an affected version, including io.metersphere:metersphere. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46178 exists.","fix":"Upgrade io.metersphere:metersphere to 2.5.1 or later.","what":"CVE-2022-46178 is a high-severity path traversal vulnerability in metersphere, published on 29 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-46178 and fix it if it is affected.\n\nWhat it is: CVE-2022-46178 is a high-severity path traversal vulnerability in metersphere, published on 29 Dec 2022. 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-2022-46178 exists.\n\nAffected packages and fixed versions:\n- io.metersphere:metersphere (Maven): affected all versions; fixed in 2.5.1\n- io.metersphere:metersphere (Maven): affected all versions; fixed in 2.5.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-2022-46178/ (Markdown: https://insights.sbomify.com/CVE-2022-46178/index.md)","id":"CVE-2022-46178","markdown":"https://insights.sbomify.com/CVE-2022-46178/index.md","name":"CVE-2022-46178","record":{"aliases":["GHSA-9p62-x3c5-hr5p"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"MeterSphere testing platform","requires_auth":"low_privilege","summary":"Attackers can upload files to arbitrary paths due to lack of filename validation, potentially leading to code execution or data modification.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"metersphere","vendor":"metersphere"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"MeterSphere is a one-stop open source continuous testing platform, covering test management, interface testing, UI testing and performance testing. Versions prior to 2.5.1 allow users to upload a file, but do not validate the file name, which may lead to upload file to any path. The vulnerability has been fixed in v2.5.1. There are no workarounds.","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":"Path Traversal In MeterSpere allows file upload to any path","id":"CVE-2022-46178","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"LiuOS vulnerable to Authorization Bypass through User-Controlled Key","id":"CVE-2022-46179"},"packages":[{"ecosystem":"Maven","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"io.metersphere:metersphere","purl":null,"source":"GHSA-9p62-x3c5-hr5p"},{"ecosystem":"Maven","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"io.metersphere:metersphere","purl":"pkg:maven/io.metersphere/metersphere","source":"GHSA-9p62-x3c5-hr5p"}],"prev":{"headline":"Discourse password reset link can lead to in account takeover if user changes to a new email","id":"CVE-2022-46177"},"products":["metersphere"],"published":"2022-12-29","related":[{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2023-29944","kev_date_added":null,"published":"2023-05-08"},{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2021-45790","kev_date_added":null,"published":"2021-12-27"},{"cvss_score":8.8,"headline":"SQL injection in n/a","id":"CVE-2021-45788","kev_date_added":null,"published":"2021-12-27"},{"cvss_score":8.6,"headline":"Improper access control to download file in metersphere","id":"CVE-2023-25573","kev_date_added":null,"published":"2023-03-09"},{"cvss_score":7.7,"headline":"Metersphere is vulnerable to Path Injection.","id":"CVE-2022-23512","kev_date_added":null,"published":"2022-12-14"},{"cvss_score":7.2,"headline":"Server-Side Request Forgery in Metersphere leads to Cross-Site Scripting","id":"CVE-2022-23544","kev_date_added":null,"published":"2022-12-27"}],"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":"partial"},"state":"PUBLISHED","updated":"2025-04-10","vendors":["metersphere"]},"summary":"Attackers can upload files to arbitrary paths due to lack of filename validation, potentially leading to code execution or data modification.","url":"https://insights.sbomify.com/CVE-2022-46178/"}