CVE-2020-35846
NixOS vulnerability analysis and mitigation

Overview

Agentejo Cockpit before version 0.11.2 contains a NoSQL injection vulnerability in the Controller/Auth.php check function. The vulnerability was disclosed on December 30, 2020, and affects all versions of Cockpit CMS up to (but not including) version 0.11.2 (NVD).

Technical details

The vulnerability exists in the authentication mechanism where the Controller/Auth.php check function is susceptible to NoSQL injection. By sending specially crafted JSON data with malicious functions like var_dump in the user object, attackers can enumerate all usernames on the system. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating it can be exploited remotely without requiring privileges or user interaction (NVD, AttackerKB).

Impact

The successful exploitation of this vulnerability allows attackers to dump memory for the user object, effectively enabling the enumeration of all usernames on the system. When combined with other vulnerabilities, particularly CVE-2020-35847, it can lead to remote code execution (AttackerKB).

Exploitability

The vulnerability is highly exploitable as it requires no authentication and is vulnerable in default configurations. A Metasploit module (exploit/multi/http/cockpit_cms_rce) has been developed to exploit this vulnerability, making it easily weaponizable (Rapid7).

Mitigation and workarounds

The vulnerability has been patched in Cockpit version 0.11.2. The fix includes removing $fn, $func, and $f as field filters and adding $where as an alternative in MongoLite, as well as implementing additional security checks for login functionality (Github). Users should upgrade to version 0.11.2 or later to mitigate this vulnerability.

Community reactions

The vulnerability has been actively monitored and tracked by security researchers and organizations. It has been observed being exploited in the wild, with security firms like GreyNoise detecting active exploitation attempts (GreyNoise).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-78662HIGH7.5
  • Docker logoDocker
  • telegraf-1.38
NoYesSep 02, 2026
CVE-2026-56855HIGH7.5
  • Docker logoDocker
  • flux-notification-controller
NoYesSep 02, 2026
CVE-2026-84642HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026
CVE-2026-84641HIGH7.5
  • NixOS logoNixOS
  • thunderbird
NoYesSep 01, 2026
CVE-2026-84640HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management