CVE-2022-23512 Metersphere is vulnerable to Path Injection.

High 7.7 Published Updated

An attacker can delete arbitrary files on the server by manipulating input in the API test case deletion function.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-23512?

CVE-2022-23512 is a high-severity path traversal vulnerability in metersphere, published on 14 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

MeterSphere is a one-stop open source continuous testing platform. Versions prior to 2.4.1 are vulnerable to Path Injection in ApiTestCaseService::deleteBodyFiles which takes a user-controlled string id and passes it to ApiTestCaseService, which uses the user-provided value (testId) in new File(BODY_FILE_DIR + "/" + testId), being deleted later by file.delete(). By adding some camouflage parameters to the url, an attacker can target files on the server. The vulnerability has been fixed in v2.4.1.

Weakness: CWE-22

Which versions are affected by CVE-2022-23512?

It affects 1 product.

Products include Metersphere Metersphere.

How do I fix CVE-2022-23512?

No fix has been published for CVE-2022-23512 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-23512 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-23512 exists.

Sources

Also known as GHSA-5mwp-xw7p-5j27.

Is CVE-2022-23512 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free