CWE-322: Key Exchange without Entity Authentication
The product performs a key exchange with an actor without verifying the identity of that actor.
Last updated
Overview
CWE-322 (Key Exchange without Entity Authentication) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
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.
Real-world CVEs
35 recorded CVEs are caused by CWE-322 (Key Exchange without Entity Authentication). The highest-severity and most recent are shown first. 19 new CWE-322 CVEs have been recorded so far in 2026 (3 in 2025).
- CVE-2026-133325
Apache Tomcat: Cluster TLS-PSK configured to use TLS 1.3 does not validate peer
Critical · CVSS 9.8 · EPSS 42th2026-11-19 - CVE-2026-1709
Keylime: keylime: authentication bypass allows unauthorized administrative operations due to missing client-side tls authentication
Critical · CVSS 9.8 · EPSS 43th2026-02-06 - CVE-2026-89422
TLS 1.3 client skips server authentication when ServerHello carries an unsolicited pre_shared_key extension
Critical · CVSS 9.3 · EPSS 46th2026-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 · CVSS 9.1 · EPSS 42th2026-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 · CVSS 9.1 · EPSS 37th2026-10-21 - CVE-2026-94134
Apache Airflow SSH provider, Apache Airflow SFTP provider: SSH hook disables host-key verification by default
Critical · CVSS 9.1 · EPSS 34th2026-10-15 - CVE-2026-11745
Central Dogma: SSH host-key verification permanently disabled in Git mirror (SshGitMirror)
High · CVSS 8.8 · EPSS 7th2026-06-22 - CVE-2025-20163
Cisco Nexus Dashboard Fabric Controller SSH Host Key Vulnerability
High · CVSS 8.7 · EPSS 45th2025-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 · CVSS 8.6 · EPSS 50th2022-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 · CVSS 8.6 · EPSS 48th2022-09-29 - CVE-2022-39250
Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification
High · CVSS 8.6 · EPSS 71th2022-09-29 - CVE-2022-39255
Matrix iOS SDK vulnerable ton Olm/Megolm protocol confusion
High · CVSS 8.6 · EPSS 66th2022-09-28
Showing 12 of 35 recorded CWE-322 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsCommon consequences
What can happen when CWE-322 is exploited.
Bypass Protection Mechanism
Affects: Access Control
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.
Read Application Data
Affects: Confidentiality
The encrypted communication between a user and a trusted host may be subject to sniffing by any actor in the communication path.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-322, grouped by where in the lifecycle they apply.
Ensure that proper authentication is included in the system design.
Understand and properly implement all checks necessary to ensure the identity of entities involved in encrypted communications.
How to detect it
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.)
Code examples
MITRE examples of the weakness in code.
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).
Terminology & mappings
Mapped taxonomies
- CLASP: Key exchange without entity authentication
Frequently asked questions
Common questions about CWE-322.
- 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.
Sources
- [1]The CLASP Application Security Process (2005)
- [2]24 Deadly Sins of Software Security (2010)
- [3]The Art of Software Security Assessment (2006)
References
- MITRE CWE definition (CWE-322) (opens in a new tab)
- CWE-322 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-322 CVEs
Get an alert when a new CWE-322 CVE affects your products, with AI-written analysis and remediation steps.