CVE-2020-35131 Code injection in n/a
Attackers can inject custom PHP code to achieve remote command execution via the registerCriteriaFunction in Cockpit CMS.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-35131?
CVE-2020-35131 is a critical code injection vulnerability in n/a, published on 8 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2020-35131?
It affects 1 product.
Products include Agentejo Cockpit.
How do I fix CVE-2020-35131?
No fix has been published for CVE-2020-35131 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-35131 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-35131 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
- CVE-2023-4195 PHP Remote File Inclusion in cockpit-hq/cockpit
- CVE-2024-4825 Unrestricted Upload of File with Dangerous Type vulnerability on Cockpit CMS from Agentejo
- CVE-2022-2818 Improper Removal of Sensitive Information Before Storage or Transfer in cockpit-hq/cockpit
- CVE-2020-35846 SQL injection in n/a
- CVE-2020-35847 SQL injection in n/a
Sources
Also known as GHSA-5qjq-mx2m-jmx9.