Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3020

An issue was discovered in ClusterLabs Hawk (aka HA Web Konsole) through 2.3.0-15. It ships the binary hawk_invoke (built from tools/hawk_invoke.c), intended to be used as a setuid program. This allows the hacluster user to invoke certain commands as root (with an attempt to limit this to safe combinations). This user is able to execute an interactive "shell" that isn't limited to the commands specified in hawk_invoke, allowing escalation to root.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3020
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:44 UTC · Revision 1

Source evidence

CVE-2021-3020

core-osv · Original source

Published 26 Aug 2022, 00:15 UTC

An issue was discovered in ClusterLabs Hawk (aka HA Web Konsole) through 2.3.0-15. It ships the binary hawk_invoke (built from tools/hawk_invoke.c), intended to be used as a setuid program. This allows the hacluster user to invoke certain commands as root (with an attempt to limit this to safe combinations). This user is able to execute an interactive "shell" that isn't limited to the commands specified in hawk_invoke, allowing escalation to root.

osv:CVE-2021-3020
Complete source record
{
  "id": "71f12de94ef22a440eb599b7311429be405694e15fb4b05d5f9d54934d204901",
  "url": "https://osv.dev/vulnerability/CVE-2021-3020",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3020",
    "summary": "An issue was discovered in ClusterLabs Hawk (aka HA Web Konsole) through 2.3.0-15. It ships the binary hawk_invoke (built from tools/hawk_invoke.c), intended to be used as a setuid program. This allows the hacluster user to invoke certain commands as root (with an attempt to limit this to safe combinations). This user is able to execute an interactive \"shell\" that isn't limited to the commands specified in hawk_invoke, allowing escalation to root.",
    "evidence": "osv:CVE-2021-3020",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-3020",
      "aliases": [
        "CVE-2021-3020"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/clusterlabs/crmsh",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c538024b8ebd138dc373b005189471d9b77e9c82"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "c538024b8ebd138dc373b005189471d9b77e9c82"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.2.1",
            "4.2.0",
            "4.1.0",
            "4.0.0",
            "3.0.0",
            "2.3.1",
            "2.3.0",
            "2.2.0",
            "2.2.0-rc3",
            "2.2.0-rc2",
            "2.2.0-rc1",
            "2.1.0",
            "2.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3020.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/clusterlabs/hawk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "10468582d5a0f552a28481c49d5f794149c9982a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:clusterlabs:hawk:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.3.0-15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.0-15",
            "2.2.0-15",
            "hawk-2.0.0",
            "1.0.0-alpha1",
            "hawk-0.6.2",
            "hawk-0.6.1",
            "hawk-0.6.0",
            "hawk-0.5.2",
            "hawk-0.5.1",
            "hawk-0.5.0",
            "hawk-0.4.1",
            "hawk-0.4.0",
            "hawk-0.3.6",
            "hawk-0.3.5",
            "hawk-0.3.4",
            "hawk-0.3.3",
            "hawk-0.3.2",
            "hawk-0.3.1",
            "hawk-0.3.0",
            "hawk-0.2.1",
            "hawk-0.2.0",
            "hawk-0.1.3",
            "hawk-0.1.2",
            "hawk-0.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3020.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:39.464765611Z",
      "provider": "osv",
      "references": [
        "https://github.com/ClusterLabs/hawk/releases",
        "https://bugzilla.suse.com/show_bug.cgi?id=1180571",
        "https://github.com/ClusterLabs/crmsh/commit/c538024b8ebd138dc373b005189471d9b77e9c82"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-3020",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385817,
  "published_at": "2022-08-26T00:15:08.773+00:00"
}