{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e4d11ddc463fcdee6d797cef8741bae9c7741364"
            }
          ],
          "repo": "https://github.com/metersphere/metersphere",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5mwp-xw7p-5j27"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23512.json"
  },
  "details": "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.",
  "id": "CVE-2022-23512",
  "modified": "2026-03-13T21:48:08.523707164Z",
  "published": "2022-12-14T13:09:36.800Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23512.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23512"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Metersphere is vulnerable to Path Injection."
}