PT-2021-11714 · Cockpit · Cockpit

Published

2021-01-08

·

Updated

2025-06-04

·

CVE-2020-35131

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Cockpit versions prior to 0.6.1
Description: The issue allows an attacker to inject custom PHP code and achieve Remote Command Execution via the registerCriteriaFunction in lib/MongoLite/Database.php. This can be demonstrated by sending values in JSON data to the "/auth/check" or "/auth/requestreset" API endpoints.
Recommendations: For versions prior to 0.6.1, update to version 0.6.1 or later to resolve the issue. As a temporary workaround, consider restricting access to the registerCriteriaFunction in lib/MongoLite/Database.php to minimize the risk of exploitation. Avoid using the vulnerable API endpoints "/auth/check" and "/auth/requestreset" until the issue is resolved.

Exploit

Fix

RCE

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2020-35131

Affected Products

Cockpit