{"id":"CVE-2022-23512","state":"PUBLISHED","title":"Metersphere is vulnerable to Path Injection.","description":"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.","publishedAt":"2022-12-14T13:09:36.800Z","updatedAt":"2025-04-21T19:20:37.099Z","severity":{"score":7.7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["metersphere metersphere"],"affected":[{"vendor":"metersphere","product":"metersphere","versions":[{"version":"< 2.4.1","status":"affected"}]}],"references":["https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T19:49:40.939Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/23xxx/CVE-2022-23512.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-23512","state":"PUBLISHED","datePublished":"2022-12-14T13:09:36.800Z","dateUpdated":"2025-04-21T19:20:37.099Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","requesterUserId":"c184a3d9-dc98-4c48-a45b-d2d88cf0ac74","dateReserved":"2022-01-19T21:23:53.776Z"},"containers":{"cna":{"title":"Metersphere is vulnerable to Path Injection.","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"metersphere","product":"metersphere","versions":[{"version":"< 2.4.1","status":"affected"}]}],"references":[{"url":"https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27","name":"https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2022-12-14T13:09:36.800Z"},"source":{"advisory":"GHSA-5mwp-xw7p-5j27","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27","name":"https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T03:43:46.468Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-21T19:20:22.193717Z","id":"CVE-2022-23512","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-21T19:20:37.099Z"}}]}}}