CVE-2021-41617

Executive Summary

CVE-2021-41617 exposes a privilege‑escalation flaw in OpenSSH (sshd 6.2‑8.x before 8.8) when non‑default configurations are used. Supplemental groups are not initialized correctly, causing helper programs invoked by AuthorizedKeysCommand or AuthorizedPrincipalsCommand to run with the group memberships of the sshd process. If the configuration runs these commands as a different user, the helper may inherit unintended group privileges, enabling an attacker to gain elevated access.


Authoritative CVE Metadata

  • CVSS Base Score: 7.0 (HIGH)
  • Last Modified: 10-11-26

Original Description

sshd in OpenSSH 6.2 through 8.x before 8.8, when certain non-default configurations are used, allows privilege escalation because supplemental groups are not initialized as expected. Helper programs for AuthorizedKeysCommand and AuthorizedPrincipalsCommand may run with privileges associated with group memberships of the sshd process, if the configuration specifies running the command as a different user.