# CVE-2022-23512: Metersphere is vulnerable to Path Injection.

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-14T13:09:36.800Z
- Modified: 2026-06-17T04:30:16.373Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- metersphere metersphere: < 2.4.1; before 2.4.1

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27> (exploit, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-23512](https://www.cve.org/CVERecord?id=CVE-2022-23512), CVE Terms of Use, modified 2025-04-21
- NVD: [CVE-2022-23512](https://nvd.nist.gov/vuln/detail/CVE-2022-23512), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23512 · Whole record: https://cve.day/CVE-2022-23512.json · Rebuilt by cve.day 2026-11-25T22:58:17.524Z
