All reports
Medium

openssh: privilege escalation when AuthorizedKeysCommand or AuthorizedPrincipalsCommand are configured

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-41617

Probability of exploitation in the next 30 days: 2.55%

FIRST EPSS · 2026-11-19

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.

A flaw was found in OpenSSH. 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. Depending on system configuration, inherited groups may allow AuthorizedKeysCommand/AuthorizedPrincipalsCommand helper programs to gain unintended privileges, potentially leading to local privilege escalation.