Double Free Vulnerability in OpenSSH Affects Legacy Systems and Agent Forwarding

Check todayFull system takeover over the network by a logged-in user.
7.1HIGH

CVE-2021-28041

Key Information:

Vendor

OpenBSD

Status
CVE ID
CVE ID:
CVE-2021-28041
Vendor
CVE Published:
5 March 2021

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

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.

3Why it's rated "Check today"
  • Its CVSS severity is high (7.1).

What is CVE-2021-28041?

A double free vulnerability exists in the ssh-agent component of OpenSSH versions before 8.5. This flaw can lead to potential exploitation in specific scenarios, such as when there is unconstrained access to the agent socket on outdated operating systems or if an agent is forwarded to a host controlled by an attacker. This presents a risk that could compromise the integrity and confidentiality of user sessions.

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

CVSS V3.1

Score:
7.1
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
Required
Scope:
Unchanged
.