CVE-2021-36368
An issue was discovered in OpenSSH before 8.9. If a client is using public-key authentication with agent forwarding but without -oLogLevel=verbose, and an attacker has silently modified the server to support the None authentication option, then the user cannot determine whether FIDO authentication is going to confirm that the user wishes to connect to that server, or that the user wishes to allow that server to connect to a different server on the user's behalf. NOTE: the vendor's position is "this is not an authentication bypass, since nothing is being bypassed.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | openssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssh-ssh1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | openssh-ssh1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | openssh-ssh1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | openssh | Fix pending | ||
| Debian 14 | openssh | Fixed | 1:8.9p1-1 | DEBIAN-CVE-2021-36368 |
| Debian 13 | openssh | Fixed | 1:8.9p1-1 | DEBIAN-CVE-2021-36368 |
| Debian 12 | openssh | Fixed | 1:8.9p1-1 | DEBIAN-CVE-2021-36368 |
| Red Hat Enterprise Linux 9 | openssh | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 9 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-cavs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 8 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-cavs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-server-sysvinit | Not affected | ||
| Red Hat Enterprise Linux 7 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 6 | pam_ssh_agent_auth | Not affected | ||
| Alpine Linux 3.24 | openssh | Fixed | 8.9_p1-r0 | ALPINE-CVE-2021-36368 |
| Alpine Linux 3.23 | openssh | Fixed | 8.9_p1-r0 | ALPINE-CVE-2021-36368 |
| Alpine Linux 3.22 | openssh | Fixed | 8.9_p1-r0 | ALPINE-CVE-2021-36368 |
| Alpine Linux 3.21 | openssh | Fixed | 8.9_p1-r0 | ALPINE-CVE-2021-36368 |
| Alpine Linux 3.20 | openssh | Fixed | 8.9_p1-r0 | ALPINE-CVE-2021-36368 |
| Alpine Linux 3.19 | openssh | Fixed | 8.9_p1-r0 | ALPINE-CVE-2021-36368 |
References
- https://www.openssh.com/security.html
- https://github.com/openssh/openssh-portable/pull/258
- https://bugzilla.mindrot.org/show_bug.cgi?id=3316
- https://docs.ssh-mitm.at/trivialauth.html
- https://security-tracker.debian.org/tracker/CVE-2021-36368
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.