{"id":"CVE-2022-23512","published":"2022-12-14T13:09:36Z","modified":"2025-04-21T19:20:37Z","title":"Metersphere is vulnerable to Path Injection.","vendor":"metersphere","product":"metersphere","tier":"tail","description":{"text":"MeterSphere is a one-stop open source continuous testing platform. Versions prior to 2.4.1 are vulnerable to Path Injection in ApiTestCaseService::deleteBodyFiles which takes a user-controlled string id and passes it to ApiTestCaseService, which uses the user-provided value (testId) in new File(BODY_FILE_DIR + \"/\" + testId), being deleted later by file.delete(). By adding some camouflage parameters to the url, an attacker can target files on the server. The vulnerability has been fixed in v2.4.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00884,"percentile":0.60083,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":12.02},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"metersphere","affectedVersions":[{"vendor":"metersphere","product":"metersphere","versions":["< 2.4.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-21T19:20:22.193717Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-28553","exploited":false,"provenance":"source"}}