Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.metersphere/metersphere
  4. ›
  5. CVE-2022-23512

CVE-2022-23512: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

December 14, 2022 (updated December 16, 2022)

MeterSphere is a one-stop open source continuous testing platform. Versions prior to 2.4.1 is 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.

References

  • github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27
  • nvd.nist.gov/vuln/detail/CVE-2022-23512

Code Behaviors & Features

Detect and mitigate CVE-2022-23512 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.1

Fixed versions

  • 2.4.1

Solution

Upgrade to version 2.4.1 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/io.metersphere/metersphere/CVE-2022-23512.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:47 +0000.