CVE-2021-41617 Privilege escalation in n/a

High 7.0 Published Updated

Attackers can escalate privileges via helper programs in OpenSSH when specific non-default configurations are used.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-41617?

CVE-2021-41617 is a high-severity vulnerability in Fedoraproject Fedora, published on 26 Sep 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2021-41617?

It affects 12 products.

Linux distribution packages (40)
openssh AlmaLinux:8All versions8.0p1-13.el8
openssh-askpass AlmaLinux:8All versions8.0p1-13.el8
openssh-cavs AlmaLinux:8All versions8.0p1-13.el8
openssh-clients AlmaLinux:8All versions8.0p1-13.el8
openssh-keycat AlmaLinux:8All versions8.0p1-13.el8
openssh-ldap AlmaLinux:8All versions8.0p1-13.el8
openssh-server AlmaLinux:8All versions8.0p1-13.el8
pam_ssh_agent_auth AlmaLinux:8All versions0.10.3-7.13.el8
openssh Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-askpass Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-cavs Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-clients Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-keycat Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-ldap Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-server Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
openssh-server-sysvinit Red Hat:enterprise_linux:7::clientAll versions0:7.4p1-22.el7_9
pam_ssh_agent_auth Red Hat:enterprise_linux:7::clientAll versions0:0.10.3-2.22.el7_9
openssh-askpass Red Hat:enterprise_linux:7::computenodeAll versions0:7.4p1-22.el7_9
openssh-cavs Red Hat:enterprise_linux:7::computenodeAll versions0:7.4p1-22.el7_9
openssh-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:7.4p1-22.el7_9
openssh-ldap Red Hat:enterprise_linux:7::computenodeAll versions0:7.4p1-22.el7_9
openssh-server-sysvinit Red Hat:enterprise_linux:7::computenodeAll versions0:7.4p1-22.el7_9
pam_ssh_agent_auth Red Hat:enterprise_linux:7::computenodeAll versions0:0.10.3-2.22.el7_9
openssh Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-askpass Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-cavs Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-clients Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-keycat Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-ldap Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-server Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
openssh-server-sysvinit Red Hat:enterprise_linux:7::serverAll versions0:7.4p1-22.el7_9
pam_ssh_agent_auth Red Hat:enterprise_linux:7::serverAll versions0:0.10.3-2.22.el7_9
openssh Red Hat:enterprise_linux:7::workstationAll versions0:7.4p1-22.el7_9
openssh-askpass Red Hat:enterprise_linux:7::workstationAll versions0:7.4p1-22.el7_9
openssh-cavs Red Hat:enterprise_linux:7::workstationAll versions0:7.4p1-22.el7_9
openssh-clients Red Hat:enterprise_linux:7::workstationAll versions0:7.4p1-22.el7_9
openssh-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:7.4p1-22.el7_9
openssh-keycat Red Hat:enterprise_linux:7::workstationAll versions0:7.4p1-22.el7_9

Products include Fedoraproject Fedora, Netapp Active Iq Unified Manager, Netapp Aff 500f Firmware, Netapp Aff A250 Firmware, Netapp Clustered Data Ontap, Netapp Hci Management Node and 6 more.

How do I fix CVE-2021-41617?

Upgrade to a fixed version.

Is CVE-2021-41617 being exploited?

There is no known exploitation of CVE-2021-41617 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2021-41617, ALSA-2022:2013, CLSA-2021-1639681866, CLSA-2022-1649695840, CLSA-2022-1649695900, CLSA-2023-1688678532 and 18 more.

Is CVE-2021-41617 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free