Remote Code Execution Vulnerability in OpenSSH's ssh-agent Feature

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2023-38408

Key Information:

Vendor

OpenBSD

Status
CVE ID
CVE ID:
CVE-2023-38408
Vendor
CVE Published:
20 July 2023

Timeline

Exploit known 453 days after it was published

  • πŸ“°

    First article discovered by Cyber Security News

  • 🟑

    Public PoC available

  • πŸ‘Ύ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Badges

πŸ‘Ύ Exploit Exists🟑 Public PoC🟣 EPSS 79%πŸ“° News Worthy

How risky is it?

  • Yes: Works over the network, no login needed
  • Yes: Public exploit code (4 proof-of-concepts)
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Openssh. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Look for signs of compromise

Exploit code is public, so check logs on exposed Openssh systems for unusual requests or new processes from before you patched. The 4 public proof-of-concepts show what an attack looks like.

4Why it's rated "Patch this week"
  • Exploit code is public, so attacks are easy to copy.
  • It can be exploited remotely without credentials.
  • EPSS gives it a 79.6% chance of exploitation in the next 30 days.
  • Its CVSS severity is critical (9.8).

What is CVE-2023-38408?

The ssh-agent feature in OpenSSH versions prior to 9.3p2 is susceptible to a vulnerability due to an insufficiently trusted search path. This flaw allows for remote code execution when an ssh-agent is forwarded to an attacker-controlled environment. The vulnerability stems from a legacy issue that was not thoroughly addressed in previous security updates, exposing users to potential exploitation through agent forwarding mechanisms.

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

News Articles

favicon imageCyber Security News

OpenSSH Agent RCE Flaw Let Attackers Execute Arbitrary Commands

The flaw exists in OpenSSH's forward ssh-agent. This flaw allows an attacker to execute arbitrary commands on vulnerable OpenSSH’s forwarded ssh-agent.

References

Password Authentication Bypass in OpenSSH on Linux Systems Using Musl libc

CVE-2026-123158
OpenBSDOpensshπŸ˜„πŸ‘Ύ8.1HIGH

Vulnerability in OpenSSH

CVE-2026-35414
OpenBSDOpensshπŸ‘Ύ4.2MEDIUM

Vulnerability in OpenSSH

CVE-2025-61984
OpenBSDOpensshπŸ˜„πŸ‘Ύ3.6LOW
View more OpenBSD vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

EPSS Score

79% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.