Public exploit available
Public proof-of-concept or exploit code exists (ExploitDB / Metasploit / Nuclei).

CVE-2020-35131Code Injection in Cockpit

CWE-94Code Injection6 documents6 sources
Severity
9.8CRITICALNVD
EPSS
91.1%
top 0.35%
CISA KEV
Not in KEV
Exploit
PoC available
Public exploit / PoC exists
Affected products
Timeline
PublishedJan 8
Latest updateMay 24

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages1 packages

NVDagentejo/cockpit< 0.6.1

🔴Vulnerability Details

3
GHSA
GHSA-5qjq-mx2m-jmx9: Cockpit before 02022-05-24
CVEList
CVE-2020-35131: Cockpit before 02021-01-08
VulnCheck
agentejo cockpit Improper Control of Generation of Code ('Code Injection')2020

💥Exploits & PoCs

1
Nuclei
Cockpit CMS 0.6.1 - Remote Code Execution

📋Vendor Advisories

1
Red Hat
cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection2021-01-08
CVE-2020-35131 — Code Injection in Agentejo Cockpit | cvebase