{
  "id": "CVE-2026-4802",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-4802",
  "published_at": "2026-05-11T12:48:08.657Z",
  "title": "Cockpit: cockpit: arbitrary command execution via crafted links in system logs ui",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-05-11T20:18:53Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.3,
    "repo": "hakaioffsec/CVE-2026-4802",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in Cockpit. This vulnerability allows a remote attacker to achieve arbitrary command execution on the host by exploiting unsanitized user-controlled parameters within crafted links in the system logs user interface (UI). An attacker can inject shell metacharacters and command substitutions into these parameters, leading to the execution of arbitrary shell commands on the affected system. This could result in a complete system compromise.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 8
  },
  "repos": [
    {
      "repo": "hakaioffsec/CVE-2026-4802",
      "url": "https://github.com/hakaioffsec/CVE-2026-4802",
      "created_at": "2026-05-11T20:18:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-02-05T02:18:05Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:356.2-1.el10_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:334.2-1.el10_0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "0:310.8-1.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:264.3-1.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:264.3-1.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:264.3-1.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:286.2-1.el8_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:286.2-1.el8_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:356.2-1.el9_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:356.2-1.el9_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:264.3-1.el9_0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:286.3-1.el9_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:311.3-1.el9_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:334.3-1.el9_6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:356.2-1.el10_2 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:334.2-1.el10_0 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 0:310.8-1.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:264.3-1.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Telecommunications Update Service to 0:264.3-1.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions to 0:264.3-1.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:286.2-1.el8_8 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:286.2-1.el8_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:356.2-1.el9_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:356.2-1.el9_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions to 0:264.3-1.el9_0 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:286.3-1.el9_2 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Extended Update Support to 0:311.3-1.el9_4 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:334.3-1.el9_6 or later."
    ],
    "workarounds": [
      "Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.\n\nOperational risk reduction until fixes are available: restrict access to Cockpit to trusted networks/users only, and avoid opening untrusted crafted Cockpit URLs"
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21390"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21392"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21394"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21395"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21468"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21515"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21516"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:21647"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/cockpit/login",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic {var}"
        }
      ],
      "ports": [
        8080,
        9090
      ],
      "protocol": "http",
      "repos": [
        "hakaioffsec/CVE-2026-4802"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hakaioffsec/CVE-2026-4802/poc.py:32"
      ]
    }
  ],
  "rules": []
}
