High, CVSS 7.4MavenPublished
Path Traversal In MeterSpere leads to upload file to any path
CVE-2022-46178 · GHSA-9p62-x3c5-hr5p
- Affected
- Maven io.metersphere:metersphere < 2.5.1
- Fixed in
- 2.5.1· Vendor fix available
- Issue
- MeterSphere allow users to upload file, but not check the file name, may lead to upload file to any path if the file name in upload request is falsified. Details Metersphere's FileUtils.java didn't check the filePath. Patches The vulnerability has been fixed in v2.5.1. https://github.com/metersphere/metersphere/commit/3a890eeeb8a6b0887927c876a73bdb3a99a82138 : add validation for file name. Workarounds It is recommended to upgrade the version to v2.5.1. For more information If you have any questions or comments about this advisory, please open an issue.
Recommended action: Upgrade to 2.5.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.