{"schema_version":"1.7.5","id":"UBUNTU-CVE-2021-41617","published":"2021-09-26T19:15:00Z","modified":"2026-05-20T16:05:14.849678353Z","related":["USN-5666-1","USN-6565-1"],"upstream":["CVE-2021-41617"],"details":"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.","affected":[{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:6.2p2-6","1:6.2p2-6ubuntu1","1:6.4p1-1","1:6.4p1-2","1:6.5p1-1","1:6.5p1-2","1:6.5p1-3","1:6.5p1-4","1:6.5p1-6","1:6.6p1-1","1:6.6p1-2","1:6.6p1-2ubuntu1","1:6.6p1-2ubuntu2","1:6.6p1-2ubuntu2.2","1:6.6p1-2ubuntu2.3","1:6.6p1-2ubuntu2.4","1:6.6p1-2ubuntu2.6","1:6.6p1-2ubuntu2.7","1:6.6p1-2ubuntu2.8","1:6.6p1-2ubuntu2.10","1:6.6p1-2ubuntu2.11","1:6.6p1-2ubuntu2.12","1:6.6p1-2ubuntu2.13","1:6.6p1-2ubuntu2.13+esm1","1:6.6p1-2ubuntu2.13+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:6.6p1-2ubuntu2.13+esm2"},{"binary_name":"openssh-server","binary_version":"1:6.6p1-2ubuntu2.13+esm2"},{"binary_name":"openssh-sftp-server","binary_version":"1:6.6p1-2ubuntu2.13+esm2"},{"binary_name":"ssh","binary_version":"1:6.6p1-2ubuntu2.13+esm2"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:6.6p1-2ubuntu2.13+esm2"},{"binary_name":"ssh-krb5","binary_version":"1:6.6p1-2ubuntu2.13+esm2"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:7.2p2-4ubuntu2.10+esm2"}]}],"versions":["1:6.9p1-2","1:6.9p1-3","1:7.1p1-1","1:7.1p1-3","1:7.1p1-4","1:7.1p1-6","1:7.1p2-1","1:7.1p2-2","1:7.2p1-1","1:7.2p2-1","1:7.2p2-2","1:7.2p2-3","1:7.2p2-4","1:7.2p2-4ubuntu1","1:7.2p2-4ubuntu2.1","1:7.2p2-4ubuntu2.2","1:7.2p2-4ubuntu2.4","1:7.2p2-4ubuntu2.5","1:7.2p2-4ubuntu2.6","1:7.2p2-4ubuntu2.7","1:7.2p2-4ubuntu2.8","1:7.2p2-4ubuntu2.10","1:7.2p2-4ubuntu2.10+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"openssh-client","binary_version":"1:7.2p2-4ubuntu2.10+esm2"},{"binary_name":"openssh-client-ssh1","binary_version":"1:7.2p2-4ubuntu2.10+esm2"},{"binary_name":"openssh-server","binary_version":"1:7.2p2-4ubuntu2.10+esm2"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.2p2-4ubuntu2.10+esm2"},{"binary_name":"ssh","binary_version":"1:7.2p2-4ubuntu2.10+esm2"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.2p2-4ubuntu2.10+esm2"},{"binary_name":"ssh-krb5","binary_version":"1:7.2p2-4ubuntu2.10+esm2"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:FIPS:16.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=fips-updates%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:7.2p2-4ubuntu2.fips.2.10.3"}]}],"versions":["1:7.2p2-4ubuntu2.fips.2.2.3","1:7.2p2-4ubuntu2.fips.2.4.1","1:7.2p2-4ubuntu2.fips.2.4.2","1:7.2p2-4ubuntu2.fips.2.8.1","1:7.2p2-4ubuntu2.fips.2.10.1","1:7.2p2-4ubuntu2.fips.2.10.2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"openssh-client","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"openssh-client-hmac","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"openssh-client-ssh1","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"openssh-server","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"openssh-server-hmac","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"ssh","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"},{"binary_name":"ssh-krb5","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.3"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:FIPS:16.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=fips%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.2p2-4ubuntu2.fips.2.2","1:7.2p2-4ubuntu2.fips.2.2.1","1:7.2p2-4ubuntu2.fips.2.10.1"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"openssh-client-hmac","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"openssh-client-ssh1","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"openssh-server","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"openssh-server-hmac","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"ssh","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"},{"binary_name":"ssh-krb5","binary_version":"1:7.2p2-4ubuntu2.fips.2.10.1"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-10","1:7.6p1-4","1:7.6p1-4ubuntu0.1","1:7.6p1-4ubuntu0.2","1:7.6p1-4ubuntu0.3","1:7.6p1-4ubuntu0.5","1:7.6p1-4ubuntu0.6","1:7.6p1-4ubuntu0.7","1:7.6p1-4ubuntu0.7+esm1","1:7.6p1-4ubuntu0.7+esm2","1:7.6p1-4ubuntu0.7+esm3","1:7.6p1-4ubuntu0.7+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:7.6p1-4ubuntu0.7+esm4"},{"binary_name":"openssh-server","binary_version":"1:7.6p1-4ubuntu0.7+esm4"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.6p1-4ubuntu0.7+esm4"},{"binary_name":"ssh","binary_version":"1:7.6p1-4ubuntu0.7+esm4"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.6p1-4ubuntu0.7+esm4"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-8","1:7.5p1-9","1:7.5p1-9build1","1:7.5p1-10"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-10"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:FIPS-updates:18.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=fips-updates%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.9p1-10~ubuntu18.04.fips.0.1","1:7.9p1-10~ubuntu18.04.fips.0.2","1:7.9p1-10~ubuntu18.04.fips.0.3","1:7.9p1-10~ubuntu18.04.fips.0.4","1:7.9p1-10~ubuntu18.04.fips.0.5","1:7.9p1-10~ubuntu18.04.fips.0.6","1:7.9p1-10~ubuntu18.04.fips.0.7","1:7.9p1-10~ubuntu18.04.fips.0.8","1:7.9p1-10~ubuntu18.04.fips.0.9","1:7.9p1-10~ubuntu18.04.fips.0.10"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"openssh-client-hmac","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"openssh-server","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"openssh-server-hmac","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"openssh-tests","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"ssh","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.10"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:FIPS:18.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=fips%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.9p1-10~ubuntu18.04.fips.0.1","1:7.9p1-10~ubuntu18.04.fips.0.2"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"openssh-client-hmac","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"openssh-server","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"openssh-server-hmac","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"openssh-tests","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"ssh","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.9p1-10~ubuntu18.04.fips.0.2"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:8.2p1-4ubuntu0.11"}]}],"versions":["1:8.0p1-6build1","1:8.1p1-1","1:8.1p1-5","1:8.2p1-4","1:8.2p1-4ubuntu0.1","1:8.2p1-4ubuntu0.2","1:8.2p1-4ubuntu0.3","1:8.2p1-4ubuntu0.4","1:8.2p1-4ubuntu0.5","1:8.2p1-4ubuntu0.7","1:8.2p1-4ubuntu0.8","1:8.2p1-4ubuntu0.9","1:8.2p1-4ubuntu0.10"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"openssh-client","binary_version":"1:8.2p1-4ubuntu0.11"},{"binary_name":"openssh-server","binary_version":"1:8.2p1-4ubuntu0.11"},{"binary_name":"openssh-sftp-server","binary_version":"1:8.2p1-4ubuntu0.11"},{"binary_name":"openssh-tests","binary_version":"1:8.2p1-4ubuntu0.11"},{"binary_name":"ssh","binary_version":"1:8.2p1-4ubuntu0.11"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:8.2p1-4ubuntu0.11"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-11build1"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-11build1"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:FIPS-updates:20.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=fips-updates%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:8.2p1-4ubuntu0.fips.0.11"}]}],"versions":["1:8.2p1-4ubuntu0.fips.0.2.1","1:8.2p1-4ubuntu0.fips.0.4.0","1:8.2p1-4ubuntu0.fips.0.5.0","1:8.2p1-4ubuntu0.fips.0.7","1:8.2p1-4ubuntu0.fips.0.8","1:8.2p1-4ubuntu0.fips.0.9","1:8.2p1-4ubuntu0.fips.0.10"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"openssh-client","binary_version":"1:8.2p1-4ubuntu0.fips.0.11"},{"binary_name":"openssh-server","binary_version":"1:8.2p1-4ubuntu0.fips.0.11"},{"binary_name":"openssh-sftp-server","binary_version":"1:8.2p1-4ubuntu0.fips.0.11"},{"binary_name":"openssh-tests","binary_version":"1:8.2p1-4ubuntu0.fips.0.11"},{"binary_name":"ssh","binary_version":"1:8.2p1-4ubuntu0.fips.0.11"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:8.2p1-4ubuntu0.fips.0.11"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:FIPS:20.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=fips%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:8.2p1-4ubuntu0.fips.0.2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:8.2p1-4ubuntu0.fips.0.2.1"},{"binary_name":"openssh-server","binary_version":"1:8.2p1-4ubuntu0.fips.0.2.1"},{"binary_name":"openssh-sftp-server","binary_version":"1:8.2p1-4ubuntu0.fips.0.2.1"},{"binary_name":"openssh-tests","binary_version":"1:8.2p1-4ubuntu0.fips.0.2.1"},{"binary_name":"ssh","binary_version":"1:8.2p1-4ubuntu0.fips.0.2.1"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:8.2p1-4ubuntu0.fips.0.2.1"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-12","1:7.5p1-12build1","1:7.5p1-13"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-13"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-14","1:7.5p1-15","1:7.5p1-15build1","1:7.5p1-16"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-16"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-17"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-17"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-17","1:7.5p1-18"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-18"}],"priority_reason":"Cannot be reproduced on Ubuntu since sshd drops groups early"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41617.json"}}],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-41617"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2021/09/26/1"},{"type":"REPORT","url":"https://www.openssh.com/txt/release-8.8"},{"type":"REPORT","url":"https://www.openssh.com/security.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5666-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6565-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-41617"}],"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}