CVE-2022-51027

Source
https://cve.org/CVERecord?id=CVE-2022-51027
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-51027.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-51027
Published
2026-11-18T15:35:09Z
Modified
2026-11-18T19:04:02Z
Severity
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
MeterSphere < 1.14.7 / 1.16.4 Pre-Auth RCE via /plugin/customMethod
Details

MeterSphere versions 1.13.0 before 1.14.7 and 1.15.0 before 1.16.4 contain a pre-authentication code injection vulnerability due to the /plugin/** endpoints being exposed with anonymous access. Attackers can upload a malicious jar via POST /plugin/add and invoke it through POST /plugin/customMethod using the 'entry' and 'request' parameters, which are passed to Class.forName and method invocation for remote code execution. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-306"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51027.json"
}
References

Affected packages

Git / github.com/metersphere/metersphere

Affected ranges

Type
GIT
Repo
https://github.com/metersphere/metersphere
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.13.0"
                },
                {
                    "fixed":  "1.14.7"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "1.15.0"
                },
                {
                    "fixed":  "1.16.4"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "07155cf833"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-51027.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "297785230320120924560878192104917218042",
            "length":  1768
        },
        "id":  "CVE-2022-51027-0c1d38bb",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/399bd4acff5f38807dae397ca9721b5622e43e64",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java",
            "function":  "matchConfig"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "331225056078206212052914967932721621014",
            "length":  1835
        },
        "id":  "CVE-2022-51027-17852750",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/07155cf833094f88820ada18af489cedd07d3100",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java",
            "function":  "matchConfig"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "310938564850150736146928769893857532887",
            "length":  2358
        },
        "id":  "CVE-2022-51027-3181ada3",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/399bd4acff5f38807dae397ca9721b5622e43e64",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/commons/utils/ShiroUtils.java",
            "function":  "loadBaseFilterChain"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "235002075638180102360299582409693931333",
            "length":  2482
        },
        "id":  "CVE-2022-51027-34d440d0",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/07155cf833094f88820ada18af489cedd07d3100",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/commons/utils/ShiroUtils.java",
            "function":  "loadBaseFilterChain"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "201853456962758282556046694746918867187",
                "330419042576232360009771116988985923135",
                "181021123951197688019822609263552007616",
                "290453157631313972638975603190674942561"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-51027-613aa8e2",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/07155cf833094f88820ada18af489cedd07d3100",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "82707260165874882192557673682188396734",
                "22841525923730540365652589580101088766",
                "160944412654423302529412078414624648999",
                "148316697574072944106773641895431354319"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-51027-65bd9eb6",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/07155cf833094f88820ada18af489cedd07d3100",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/commons/utils/ShiroUtils.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "71155811337060978670823593170181676449",
            "length":  4986
        },
        "id":  "CVE-2022-51027-9c4aea5a",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/399bd4acff5f38807dae397ca9721b5622e43e64",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java",
            "function":  "setSamplerPath"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "285306996743085697265660816770671597961",
            "length":  254
        },
        "id":  "CVE-2022-51027-a36ebc92",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/399bd4acff5f38807dae397ca9721b5622e43e64",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java",
            "function":  "isUrl"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "117925356896012773611805517977550437967",
                "88650523969599313658081329629534316455",
                "160276837140917789419716836303597489057",
                "142339507448739781936123700209639868399",
                "306148917800158006698406474136285417985",
                "75694474385355318053146656822332949335",
                "179051953588170364788614078722513963451",
                "108513238340495923129086756608869351352",
                "40321418674652105706666742945839509326",
                "233873545362100153711221274751805362070",
                "193386905156005648537514093901414130240",
                "119258988697698457769296765622298402469",
                "166028840661384091299283773344503015091",
                "201853456962758282556046694746918867187",
                "330419042576232360009771116988985923135",
                "181021123951197688019822609263552007616",
                "290453157631313972638975603190674942561"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-51027-c9346f91",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/399bd4acff5f38807dae397ca9721b5622e43e64",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "82707260165874882192557673682188396734",
                "22841525923730540365652589580101088766",
                "160944412654423302529412078414624648999",
                "148316697574072944106773641895431354319"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-51027-d94e8b44",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/metersphere/metersphere/commit/399bd4acff5f38807dae397ca9721b5622e43e64",
        "target":  {
            "file":  "backend/src/main/java/io/metersphere/commons/utils/ShiroUtils.java"
        }
    }
]
vanir_signatures_modified
"2026-11-18T19:04:02Z"