---
title: "CWE-322: Key Exchange without Entity Authentication"
url: https://radicalnotion.ai/cwe/cwe-322
type: cwe
description: "The product performs a key exchange with an actor without verifying the identity of that actor."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-322: Key Exchange without Entity Authentication

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 35
- **Of those, in CISA KEV:** 0
- **New in 2026:** 19
- **CWE catalog version:** 4.21

## Description

The product performs a key exchange with an actor without verifying the identity of that actor.

## Background

Performing a key exchange will preserve the integrity of the information sent between two entities, but this will not guarantee that the entities are who they claim they are.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism | No authentication takes place in the key exchange process itself, bypassing an assumed protection of encryption. This may enable an attacker to impersonate an actor by modifying traffic between the two entities. Typically, this involves a victim client that contacts a malicious server that is impersonating a trusted server. If the client skips authentication or ignores an authentication failure, the malicious server may request authentication information from the user. The malicious server can then use this authentication information to log in to the trusted server using the victim's credentials, sniff traffic between the victim and trusted server, etc. |
| Confidentiality | Read Application Data | The encrypted communication between a user and a trusted host may be subject to sniffing by any actor in the communication path. |

## Potential mitigations

### Architecture and Design

Ensure that proper authentication is included in the system design.

### Implementation

Understand and properly implement all checks necessary to ensure the identity of entities involved in encrypted communications.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

## Demonstrative examples

### Example 1

Many systems have used Diffie-Hellman key exchange without authenticating the entities exchanging keys, allowing attackers to influence communications by redirecting or interfering with the communication path. Many people using SSL/TLS skip the authentication (often unknowingly).

## Real CVEs with this weakness (sample of 12 of 35)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-133325 | Apache Tomcat: Cluster TLS-PSK configured to use TLS 1.3 does not validate peer | critical | 9.8 | - | No | 2026-11-19 |
| CVE-2026-1709 | Keylime: keylime: authentication bypass allows unauthorized administrative operations due to missing client-side tls authentication | critical | 9.8 | - | No | 2026-02-06 |
| CVE-2026-89422 | TLS 1.3 client skips server authentication when ServerHello carries an unsolicited pre\_shared\_key extension | critical | 9.3 | - | No | 2026-09-22 |
| CVE-2026-94423 | Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known\_hosts | critical | 9.1 | - | No | 2026-10-21 |
| CVE-2026-94140 | Rex versions through 1.16.1 for Perl accept an unknown SSH host key for remote rsync transfers because sync hardcodes StrictHostKeyChecking=no | critical | 9.1 | - | No | 2026-10-21 |
| CVE-2026-94134 | Apache Airflow SSH provider, Apache Airflow SFTP provider: SSH hook disables host-key verification by default | critical | 9.1 | - | No | 2026-10-15 |
| CVE-2026-11745 | Central Dogma: SSH host-key verification permanently disabled in Git mirror (SshGitMirror) | high | 8.8 | - | No | 2026-06-22 |
| CVE-2025-20163 | Cisco Nexus Dashboard Fabric Controller SSH Host Key Vulnerability | high | 8.7 | - | No | 2025-06-04 |
| CVE-2022-39254 | When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder | high | 8.6 | - | No | 2022-09-29 |
| CVE-2022-39252 | When matrix-rust-sdk recieves forwarded room keys, the reciever doesn't check if it requested the key from the forwarder | high | 8.6 | - | No | 2022-09-29 |
| CVE-2022-39250 | Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification | high | 8.6 | - | No | 2022-09-29 |
| CVE-2022-39255 | Matrix iOS SDK vulnerable ton Olm/Megolm protocol confusion | high | 8.6 | - | No | 2022-09-28 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-306](https://radicalnotion.ai/cwe/cwe-306) | Missing Authentication for Critical Functionality |
| Peer | [CWE-295](https://radicalnotion.ai/cwe/cwe-295) | Improper Certificate Validation |
| Can precede | [CWE-923](https://radicalnotion.ai/cwe/cwe-923) | Improper Restriction of Communication Channel to Intended Endpoints |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CLASP | Key exchange without entity authentication | - | - |

## Frequently asked questions

### What is CWE-322?

The product performs a key exchange with an actor without verifying the identity of that actor.

### What CVEs are caused by CWE-322?

35 recorded CVEs are attributed to CWE-322, including CVE-2026-133325, CVE-2026-1709 and CVE-2026-89422.

### How do you prevent CWE-322?

Ensure that proper authentication is included in the system design.

### How is CWE-322 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

### What are the consequences of CWE-322?

Exploiting CWE-322 can lead to: Bypass Protection Mechanism, Read Application Data.

### Is CWE-322 actively exploited?

35 recorded CVEs are caused by CWE-322; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/322.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-322). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
