CVE-2020-35131 Code injection in n/a

Critical 9.8 Published Updated

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.

Sources

Also known as GHSA-5qjq-mx2m-jmx9.

Is CVE-2020-35131 in your software?

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

Check your SBOMs for free