VulnarioBlogOpenSSH vulnerabilities
OpenSSH Vulnerabilities: The 10 Most Critical OpenSSH Security Bugs (CVEs)
OpenSSH vulnerabilities are security flaws in OpenSSH that attackers can abuse to steal data, take over a server or interrupt a service. OpenSSH is the standard tool for secure remote access to Linux and Unix servers. The National Vulnerability Database (NVD) lists 146 CVEs for OpenSSH, 7 of them rated critical, and 29 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.
This guide lists the 10 most critical OpenSSH security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers OpenSSH security basics and a free way to be told about the next OpenSSH CVE as soon as it is published.
Key takeaways
- No OpenSSH CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
- 7 OpenSSH CVEs are rated critical (CVSS v3), and 29 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2026-60002, published Jul 8, 2026.
- You can monitor OpenSSH for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these OpenSSH CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical OpenSSH CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2023-38408 | 9.8 Critical | 2023-07-20 | Remote code execution | No |
| 2 | CVE-2023-28531 | 9.8 Critical | 2023-03-17 | Improper access control | No |
| 3 | CVE-2016-1908 | 9.8 Critical | 2017-04-11 | Improper authentication | No |
| 4 | CVE-2010-4478 | 9.8 Critical | 2010-12-06 | Improper authentication | No |
| 5 | CVE-2002-0639 | 9.8 Critical | 2002-07-03 | Integer overflow | No |
| 6 | CVE-2002-0083 | 9.8 Critical | 2002-03-15 | Privilege escalation | No |
| 7 | CVE-2026-60002 | 9.4 Critical | 2026-07-08 | Use after free | No |
| 8 | CVE-2026-35385 | 8.1 High | 2026-04-02 | Security flaw | No |
| 9 | CVE-2026-35386 | 8.1 High | 2026-04-02 | Security flaw | No |
| 10 | CVE-2026-35414 | 8.1 High | 2026-04-02 | Security flaw | No |
Each OpenSSH CVE explained
1. CVE-2023-38408: Remote code execution
- What NVD says
- The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 9.3; 9.3
- What to do
- Upgrade to 9.3 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
2. CVE-2023-28531: Improper access control
- What NVD says
- ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.9 to before 9.3
- What to do
- Upgrade to 9.3 or a later release, then restart the service.
3. CVE-2016-1908: Improper authentication
- What NVD says
- The client in OpenSSH before 7.2 mishandles failed cookie generation for untrusted X11 forwarding and relies on the local X11 server for access-control decisions, which allows remote X11 clients to trigger a fallback and obtain trusted X11 forwarding privileges by leveraging configuration issues on this X11 server, as demonstrated by lack of the SECURITY extension on this X11 server.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 7.2
- What to do
- Upgrade to 7.2 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
4. CVE-2010-4478: Improper authentication
- What NVD says
- OpenSSH 5.6 and earlier, when J-PAKE is enabled, does not properly validate the public parameters in the J-PAKE protocol, which allows remote attackers to bypass the need for knowledge of the shared secret, and successfully authenticate, by sending crafted values in each round of the protocol, a related issue to CVE-2010-4252.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- up to and including 5.6; 1.2; 1.2.1; 1.2.2
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
5. CVE-2002-0639: Integer overflow
- What NVD says
- Integer overflow in sshd in OpenSSH 2.9.9 through 3.3 allows remote attackers to execute arbitrary code during challenge response authentication (ChallengeResponseAuthentication) when OpenSSH is using SKEY or BSD_AUTH authentication.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.9.9 through 3.3
- What to do
- Apply the vendor's security update for your release and restart the service.
6. CVE-2002-0083: Privilege escalation
- What NVD says
- Off-by-one error in the channel code of OpenSSH 2.0 through 3.0.2 allows local users or remote malicious servers to gain privileges.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.0 to before 3.1
- What to do
- Upgrade to 3.1 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2026-60002: Use after free
- What NVD says
- ssh in OpenSSH before 10.4 can have a use-after-free when a server changes its host key during a key re-exchange. (This outcome occurs only on the client side.)
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality and integrity; limited impact on availability.
- Affected versions
- before 10.4
- What to do
- Upgrade to 10.4 or a later release, then restart the service.
8. CVE-2026-35385: Security flaw
- What NVD says
- In OpenSSH before 10.3, a file downloaded by scp may be installed setuid or setgid, an outcome contrary to some users' expectations, if the download is performed as root with -O (legacy scp protocol) and without -p (preserve mode).
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 10.3
- What to do
- Upgrade to 10.3 or a later release, then restart the service.
9. CVE-2026-35386: Security flaw
- What NVD says
- In OpenSSH before 10.3, command execution can occur via shell metacharacters in a username within a command line. This requires a scenario where the username on the command line is untrusted, and also requires a non-default configurations of % in ssh_config.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 10.0 to before 10.3
- What to do
- Upgrade to 10.3 or a later release, then restart the service.
10. CVE-2026-35414: Security flaw
- What NVD says
- OpenSSH before 10.3 mishandles the authorized_keys principals option in uncommon scenarios involving a principals list in conjunction with a Certificate Authority that makes certain use of comma characters.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 10.3
- What to do
- Upgrade to 10.3 or a later release, then restart the service.
How to check if your OpenSSH is vulnerable
Find the exact version first, then compare it with the affected and fixed versions in each CVE above.
ssh -V
On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.
OpenSSH security checklist
- Keep the tool and its signatures or rules up to date.
- Run it with the least privilege that works.
- Restrict access to its management interface.
- Apply security releases promptly, since a flaw in a security tool is attractive to attackers.
- Monitor its logs for failures and tampering.
Where you run OpenSSH matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating OpenSSH: on most plans the operating system and applications are yours to patch unless the plan says otherwise.
Your stack is bigger than OpenSSH. A flaw anywhere in the chain can be the way in, so also review our guides to OpenSSL vulnerabilities, Debian vulnerabilities and Ubuntu vulnerabilities.
How to get alerted about new OpenSSH vulnerabilities
NVD received 29 new OpenSSH CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose OpenSSH and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run OpenSSH alone. These guides cover the technologies it is most often deployed with.
- OpenSSL vulnerabilities: OpenSSL is the cryptography and TLS library used by most web servers.
- Debian vulnerabilities: Debian is a long-established community Linux distribution used widely on servers.
- Ubuntu vulnerabilities: Ubuntu is the most popular Linux distribution for cloud servers and VPS.
- Fail2ban vulnerabilities: Fail2ban blocks brute-force attempts by banning abusive IP addresses.
- Webmin vulnerabilities: Webmin is a web-based interface for administering Unix and Linux servers.
- FreeBSD vulnerabilities: FreeBSD is an open-source Unix-like operating system used for servers and appliances.
- Ansible vulnerabilities: Ansible is an agentless IT automation tool.
- Git vulnerabilities: Git is the distributed version control system used by almost every software team.
- ProFTPD vulnerabilities: ProFTPD is a highly configurable FTP server for Unix and Linux.
- vsftpd vulnerabilities: vsftpd (Very Secure FTP Daemon) is the default FTP server on many Linux distributions.
Frequently asked questions about OpenSSH vulnerabilities
What are the most critical OpenSSH vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical OpenSSH CVEs include CVE-2023-38408 (CVSS 9.8), CVE-2023-28531 (CVSS 9.8), CVE-2016-1908 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have OpenSSH vulnerabilities been exploited in real attacks?
For the OpenSSH product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep OpenSSH patched.
How many vulnerabilities does OpenSSH have?
As of Nov 3, 2026 the National Vulnerability Database lists 146 CVEs for OpenSSH, with 7 rated critical by CVSS v3. 29 were published in the previous twelve months.
How do I check which OpenSSH version I run?
Run ssh -V on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.
How can I get alerted when a new OpenSSH CVE is published?
Add OpenSSH to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose OpenSSH and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is OpenSSH secure?
OpenSSH is as secure as its patch level. NVD published 29 new OpenSSH CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2023-38408?
CVE-2023-38408 is a critical OpenSSH vulnerability with a CVSS score of 9.8, published Jul 20, 2023. The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.