CVE-2020-35131

CRITICAL EXPLOITED NUCLEI

Cockpit < 0.6.1 - Remote Code Execution via registerCriteriaFunction

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2020-35131 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 1 public exploit from researchers including Rafael Resende. A Nuclei detection template is also available.

AI-analyzed exploit summary This exploit demonstrates PHP code injection in Cockpit CMS versions prior to 0.6.1 via the `registerCriteriaFunction` in `lib/MongoLite/Database.php`. It leverages authentication and password reset endpoints to inject arbitrary PHP code (e.g., `phpinfo()`) for remote code execution.

Description

Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.

Exploits (1)

exploitdb WORKING POC
by Rafael Resende · textwebappsphp
https://www.exploit-db.com/exploits/49390

This exploit demonstrates PHP code injection in Cockpit CMS versions prior to 0.6.1 via the `registerCriteriaFunction` in `lib/MongoLite/Database.php`. It leverages authentication and password reset endpoints to inject arbitrary PHP code (e.g., `phpinfo()`) for remote code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Cockpit CMS < 0.6.1
No auth needed
Prerequisites: Access to the target's authentication or password reset endpoints
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Cockpit CMS 0.6.1 - Remote Code Execution
CRITICALVERIFIEDby DhiyaneshDK
Shodan: http.html:"cockpit"
FOFA: app="Cockpit"

References (3)

Core 3
Core References
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/agentejo/cockpit/releases/tag/0.6.1
Exploit, Third Party Advisory, VDB Entry x_refsource_misc
https://www.exploit-db.com/exploits/49390

Scores

CVSS v3 9.8
EPSS 0.4994
EPSS Percentile 98.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

VulnCheck KEV 2023-11-13
CWE
CWE-94
Status published
Products (1)
agentejo/cockpit < 0.6.1
Published Jan 08, 2021
Tracked Since Feb 18, 2026