CVE-2022-33681: Improper Hostname Verification in Java Client and Proxy can expose authentication data via MITM
Vulnerability summary
CVE-2022-33681 is a medium (CVSS 5.9) Improper Certificate Validation vulnerability in apache software foundation apache pulsar. EPSS estimates a 0.71% chance of exploitation in the next 30 days, higher than 54.9% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 23-09-2022PublishedVulnerability first disclosed.
- 22-05-2025Last modifiedVulnerability information updated.
Description
Delayed TLS hostname verification in the Pulsar Java Client and the Pulsar Proxy make each client vulnerable to a man in the middle attack. Connections from the Pulsar Java Client to the Pulsar Broker/Proxy and connections from the Pulsar Proxy to the Pulsar Broker are vulnerable. Authentication data is sent before verifying the server’s TLS certificate matches the hostname, which means authentication data could be exposed to an attacker. An attacker can only take advantage of this vulnerability by taking control of a machine 'between' the client and the server. The attacker must then actively manipulate traffic to perform the attack by providing the client with a cryptographically valid certificate for an unrelated host. Because the client sends authentication data before performing hostname verification, an attacker could gain access to the client’s authentication data. The client eventually closes the connection when it verifies the hostname and identifies the targeted hostname does not match a hostname on the certificate. Because the client eventually closes the connection, the value of the intercepted authentication data depends on the authentication method used by the client. Token based authentication and username/password authentication methods are vulnerable because the authentication data can be used to impersonate the client in a separate session. This issue affects Apache Pulsar Java Client versions 2.7.0 to 2.7.4; 2.8.0 to 2.8.3; 2.9.0 to 2.9.2; 2.10.0; 2.6.4 and earlier.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.71%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.70% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- pulsarEOL< 2.7.5 | ≥ 2.8.0, < 2.8.4 | ≥ 2.9.0, < 2.9.3 | 2.10.0
Apache software foundation1 product
- apache pulsar2.10.0 | ≥ 2.7, ≤ 2.7.4 | ≥ 2.8, ≤ 2.8.3 | ≥ 2.9, ≤ 2.9.2 | ≥ 2.6 and earlier, ≤ 2.6.4
Org.apache.pulsar1 product
- pulsar-client< 2.7.5 | ≥ 2.8.0, < 2.8.4 | ≥ 2.9.0, < 2.9.3 | ≥ 2.10.0, < 2.10.1
3 vendors · 3 products
References
3 links- lists.apache.org/thread/fpo6x10trvn20hlk0dmnr5vlz5v4kl3dX Refsource MISCWEBMailing ListVendor Advisory