# CVE-2022-46178: Path Traversal In MeterSpere allows file upload to any path

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- 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.75%, higher than 56% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-29T18:09:38.842Z
- Modified: 2026-06-17T05:11:22.400Z
- Also known as: GHSA-9p62-x3c5-hr5p
- 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, covering test management, interface testing, UI testing and performance testing. Versions prior to 2.5.1 allow users to upload a file, but do not validate the file name, which may lead to upload file to any path. The vulnerability has been fixed in v2.5.1. There are no workarounds.

(As written by CVE List.)

## Affected

- metersphere metersphere: < v2.5.1; before 2.5.1
- io.metersphere:metersphere (Maven): before 2.5.1

## Every score

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

## References

- <https://github.com/metersphere/metersphere/security/advisories/GHSA-9p62-x3c5-hr5p> (exploit, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-46178> (advisory)
- <https://github.com/metersphere/metersphere> (package)
- <https://github.com/metersphere/metersphere/blob/v2.5.0/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/utils/FileUtils.java#L5> (web)
- <https://github.com/metersphere/metersphere/releases/tag/v2.5.1> (web)

## Sources

- CVE List: [CVE-2022-46178](https://www.cve.org/CVERecord?id=CVE-2022-46178), CVE Terms of Use, modified 2025-04-10
- GitHub Advisory Database: [GHSA-9p62-x3c5-hr5p](https://github.com/advisories/GHSA-9p62-x3c5-hr5p), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-46178](https://nvd.nist.gov/vuln/detail/CVE-2022-46178), Public domain, modified 2026-06-17

---

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