CVE-2021-3660
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-3660 is a clickjacking vulnerability affecting Cockpit and its plugins. The vulnerability was discovered in July 2021 and allows malicious websites to render a Cockpit server page via another website inside an HTML entry. This vulnerability affects Cockpit versions prior to 236, including installations in Red Hat Enterprise Linux 8.3 and below (Red Hat Bugzilla).

Technical details

The vulnerability stems from Cockpit's lack of protection against clickjacking attacks, specifically the absence of X-Frame-Options header in HTTP responses. This security header controls whether a page can be embedded in an iframe on other websites. The issue was particularly exploitable in versions before Cockpit 236, as these versions used a non-strict cookie policy that allowed cross-origin frame embedding (GitHub Issue).

Impact

If exploited, this vulnerability could allow attackers to conduct clickjacking attacks, where users might unknowingly perform actions on the Cockpit interface when visiting a malicious website. For example, an attacker could potentially trick users into temporarily disabling SELinux through a single click, as the button is accessible with minimal interaction (Red Hat Bugzilla).

Mitigation and workarounds

The issue was addressed by implementing the X-Frame-Options header set to 'sameorigin', which restricts frame embedding to the same origin only. This fix was implemented in Cockpit version 236 and above, which is included in Red Hat Enterprise Linux 8.4 and later versions. Additionally, the cookie policy was tightened to prevent cross-origin frame embedding (GitHub Commit).

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-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

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