Skip to content

cockpit: Fix CVE-2026-4631#3

Merged
Zeno-sole merged 1 commit into
masterfrom
fix/CVE-2026-4631
Apr 20, 2026
Merged

cockpit: Fix CVE-2026-4631#3
Zeno-sole merged 1 commit into
masterfrom
fix/CVE-2026-4631

Conversation

@deepin-ci-robot
Copy link
Copy Markdown
Contributor

Security Update

  • Fix CVE-2026-4631: SSH injection vulnerability in remote login
  • Package: cockpit

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.

Changes

  • Added -- to SSH command invocations in src/cockpit/beiboot.py
  • Added -- to SSH command invocations in src/ws/cockpitauth.c
  • Updated debian/changelog

Upstream

cockpit-project/cockpit@9d06956

Testing

  • Build verification recommended
  • Verify SSH connection functionality after patch

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.

This patch adds `--` to SSH command invocations to ensure hostnames are
interpreted correctly and cannot be treated as command-line options.

Upstream: cockpit-project/cockpit@9d06956
@github-actions
Copy link
Copy Markdown

TAG Bot

TAG: 328-1deepin2
EXISTED: no
DISTRIBUTION: unstable

@deepin-ci-robot
Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zccrs for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Zeno-sole
Copy link
Copy Markdown

/integrate

@github-actions
Copy link
Copy Markdown

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#3830
PrNumber: 3830
PrBranch: auto-integration-24442864997

@Zeno-sole Zeno-sole merged commit 1390400 into master Apr 20, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants