CVE-2026-4631

Source
https://cve.org/CVERecord?id=CVE-2026-4631
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-4631.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-4631
Aliases
  • GHSA-m4gv-x78h-3427
Downstream
ALSA (2)
CLSA (1)
DEBIAN (1)
MGASA (2)
openSUSE (3)
RHBA (2)
RHSA (4)
RLSA (2)
SUSE (4)
UBUNTU (1)
Related
Published
2026-04-07T16:30:28Z
Modified
2026-11-26T19:45:27Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection
Details

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.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-78"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4631.json"
}
References

Affected packages

Git / github.com/cockpit-project/cockpit

Affected ranges

Type
GIT
Repo
https://github.com/cockpit-project/cockpit
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "327"
                },
                {
                    "fixed":  "360"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Affected versions

Other
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
341.*
341.1
353.*
353.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-4631.json"