CVE-2022-46178

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-46178
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-46178.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-46178
Aliases
Published
2022-12-29T18:09:38Z
Modified
2025-10-22T18:34:57.217784Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L CVSS Calculator
Summary
Path Traversal In MeterSpere allows file upload to any path
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/metersphere/metersphere

Affected ranges

Type
GIT
Repo
https://github.com/metersphere/metersphere
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.1.0
v1.1.1
v1.1.2
v1.2.0
v1.2.1
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
v1.4.3
v1.5.0
v1.5.1
v1.6.0
v1.6.1
v1.6.2
v1.7.0
v1.7.1
v1.7.2
v1.7.3
v1.8.0
v1.8.1
v1.8.2

v2.*

v2.5.0

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "function": "toHashTree",
            "file": "api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/MsScenario.java"
        },
        "digest": {
            "function_hash": "68593591742400051668706482424047994328",
            "length": 3546.0
        },
        "deprecated": false,
        "id": "CVE-2022-46178-636f3596",
        "source": "https://github.com/metersphere/metersphere/commit/8e5455a00c54e5efd5d01de55258e548702583f5"
    },
    {
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/MsScenario.java"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "322932455839097205091892292438140062018",
                "151060018808302580421457518745355805453",
                "284541459468125324867198926681464239690",
                "178769566840486555860437685373154167721"
            ]
        },
        "deprecated": false,
        "id": "CVE-2022-46178-b8f8d860",
        "source": "https://github.com/metersphere/metersphere/commit/8e5455a00c54e5efd5d01de55258e548702583f5"
    }
]