Skip to content
Heist/ feed
Back to feed
CriticalFix available

cockpit — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-4631

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.

Products
cockpit
Affected versions
337-1, 338-1, 339-1, 340-1, 341.1-1, 342-1, 343-1, 345-1, 345-1~bpo13+1, 346-1, 346-1~bpo13+1, 348-1, 348-1~bpo13+1, 350-1, 350-1~bpo13+1, 352-1, 352-1~bpo13+1, 353.1-1, 353.1-1~bpo13+1, 354-1, 354-1~bpo13+1, 355-1, 355-1~bpo13+1, 356-1, 356-1~bpo13+1, 358-1, 358-1~bpo13+1, 360-1~bpo13+1
Fixed versions
337-1+deb13u1, 360-1
CVEs
CVE-2026-4631
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:49 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-4631

core-osv · Original source

Published 7 Apr 2026, 17:16 UTC

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.

osv:DEBIAN-CVE-2026-4631

cockpit

Fixed versions: 337-1+deb13u1

cockpit

Fixed versions: 360-1

Complete source record
{
  "id": "528265b20c6bb62aeaaa1063ddfa62cf6e58fe5247537daa72edb6dca3397bae",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-4631",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-4631",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-4631",
    "products": [
      {
        "name": {
          "value": "cockpit",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "337-1+deb13u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "337-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cockpit",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "360-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "337-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "338-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "339-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "340-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "341.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "342-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "343-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "345-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "345-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "346-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "346-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "348-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "348-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "350-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "350-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "352-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "352-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "353.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "353.1-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "354-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "354-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "355-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "355-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "356-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "356-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "358-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "358-1~bpo13+1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "360-1~bpo13+1",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2026-4631",
      "aliases": [
        "DEBIAN-CVE-2026-4631"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "337-1+deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "cockpit",
            "purl": "pkg:deb/debian/cockpit?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "337-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4631.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "360-1"
                }
              ]
            }
          ],
          "package": {
            "name": "cockpit",
            "purl": "pkg:deb/debian/cockpit?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "337-1",
            "338-1",
            "339-1",
            "340-1",
            "341.1-1",
            "342-1",
            "343-1",
            "345-1",
            "345-1~bpo13+1",
            "346-1",
            "346-1~bpo13+1",
            "348-1",
            "348-1~bpo13+1",
            "350-1",
            "350-1~bpo13+1",
            "352-1",
            "352-1~bpo13+1",
            "353.1-1",
            "353.1-1~bpo13+1",
            "354-1",
            "354-1~bpo13+1",
            "355-1",
            "355-1~bpo13+1",
            "356-1",
            "356-1~bpo13+1",
            "358-1",
            "358-1~bpo13+1",
            "360-1~bpo13+1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4631.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:34.239991374Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-4631"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-4631"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-4631",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 461295,
  "published_at": "2026-04-07T17:16:38.01+00:00"
}