{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "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"
              }
            ]
          },
          "events": [
            {
              "introduced": "1e92a35d3b87e50eb6afe277f6daa8359f2f4221"
            },
            {
              "fixed": "399bd4acff5f38807dae397ca9721b5622e43e64"
            },
            {
              "introduced": "a1807c0620bd080f1a1bb9d3c907aae52b0a2593"
            },
            {
              "fixed": "07155cf833094f88820ada18af489cedd07d3100"
            },
            {
              "fixed": "07155cf833"
            }
          ],
          "repo": "https://github.com/metersphere/metersphere",
          "type": "GIT"
        }
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2022-51027",
  "modified": "2026-11-18T17:46:03.214161726Z",
  "published": "2026-11-18T15:35:09.696Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51027.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/metersphere/metersphere/commit/07155cf833"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/metersphere/metersphere-plugin-rce.yaml"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-51027"
    },
    {
      "type": "EVIDENCE",
      "url": "https://web.archive.org/web/20220706000509/https://y4er.com/post/metersphere-plugincontroller-pre-auth-rce/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/metersphere-1.13.0-1.16.3-pre-auth-rce-via-plugin-custommethod"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/metersphere-1.14.7-1.16.4-pre-auth-rce-via-plugin-custommethod"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "MeterSphere \u003c 1.14.7 / 1.16.4 Pre-Auth RCE via /plugin/customMethod"
}