CVE-2022-33681
published medium CVSS 3.1 · 5.9Improper Hostname Verification in Java Client and Proxy can expose authentication data via MITM
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Pulsar2.10.0 · 2.7 through 2.7.4 · 2.8 through 2.8.3 · 2.9 through 2.9.2 · 2.6 and earlier through 2.6.4 | Affected | Not stated | apache |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Pulsar | 2.10.0 (affected)2.7 through 2.7.4 (affected · custom)2.8 through 2.8.3 (affected · custom)2.9 through 2.9.2 (affected · custom)2.6 and earlier through 2.6.4 (affected · custom) | apache · cna |
Weaknesses
1- CWE-295 CWE-295 Improper Certificate Validation
References
1Provider assertions
3apache · cna
Improper Hostname Verification in Java Client and Proxy can expose authentication data via MITM
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1c03c5d9a48e8de26c351cd3afadd7bd2ace0f014bc70a9363c93b12ad022186
- Ingested
- 23 Sep 2026, 08:00:57 UTC
- Source record
- Official CVE record