CVE-2022-33681: Apache Pulsar - Man-in-the-Middle
- Cve: CVE-2022-33681
- Name: Apache Pulsar - Man-in-the-Middle
- 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.
- Impact: Attackers can intercept authentication data, potentially impersonating clients and compromising security in affected Pulsar deployments.
- Remediation: Update to Apache Pulsar Java Client version 2.7.5 or later, where the issue is fixed.
- Vulnerability type: man_in_the_middle
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00712
- Epss percentile: 0.54516
- Assignee: [email protected]
- Published at: 2022-09-23T10:15:10Z
- Age in days: 1523
- Modified at: 2026-06-17T04:49:14Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-33681
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-295 | Improper Certificate Validation |
References
| Url | Source | Tags |
|---|---|---|
| https://lists.apache.org/thread/fpo6x10trvn20hlk0dmnr5vlz5v4kl3d | nvd | Mailing List, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:pulsar | = 2.10.0; >= 2.9.0, < 2.9.3; >= 2.8.0, < 2.8.4; < 2.7.5 | no | nvd | /v1/products/apache/pulsar |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| apache/pulsar | product | yes | /v1/repositories/apache/pulsar |
Index
- Repositories: 16
- Repositories high signal: 10
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 29
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports