Summary
CVE-2022-51027 is a critical pre-authentication code injection vulnerability (missing authentication for a critical function, CWE-306) in FIT2CLOUD’s MeterSphere, an open-source continuous testing platform. An unauthenticated remote attacker can upload a malicious JAR and run arbitrary code on the server. The CVE record lists a CVSS v4.0 score of 9.3 (Critical) and a CVSS v3.1 score of 9.8 (Critical). The record carries a known-exploited tag.
Technical details
- Root cause: the
/plugin/**endpoints are exposed with anonymous access, so no authentication is required. - Trigger: an attacker uploads a malicious JAR with
POST /plugin/add. The attacker then sendsPOST /plugin/customMethodwithentryandrequestparameters. These are passed toClass.forNameand a method invocation routine. - Attack vector: network, with no authentication and no user interaction.
- Impact: arbitrary code execution on the MeterSphere server, which affects confidentiality, integrity and availability.
- The flaw was reported to the MeterSphere developers in January 2022 and the vendor tracks it as advisory MS-2022-01. The CVE record cites exploitation evidence first documented by the Shadowserver Foundation on October 14, 2023.
Affected software
- MeterSphere 1.13.0 up to, but not including, 1.14.7
- MeterSphere 1.15.0 up to, but not including, 1.16.4
Severity
- CVSS v4.0: 9.3 (Critical). Vector:
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 v3.1: 9.8 (Critical). Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade to MeterSphere 1.14.7 or later on the 1.14 branch, or to 1.16.4 or later. The vendor advises upgrading especially for instances reachable from the internet.
- If you cannot patch right away, restrict network access to MeterSphere to trusted networks only. Block access to
/plugin/**paths from untrusted sources. This workaround is a general precaution and is not taken from the vendor advisory. - Review exposed instances for unexpected uploaded plugin JARs and for suspicious requests to
/plugin/addand/plugin/customMethod.

