CVE-2022-33681
Apache Pulsar Java Client vulnerable to Improper Certificate Validation
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.pulsar » pulsar-client | < 2.7.5>= 2.8.0, < 2.8.4>= 2.9.0, < 2.9.3>= 2.10.0, < 2.10.1 | 2.7.5, 2.8.4, 2.9.3, 2.10.1 |
Blast radius
14% of the dependent artifacts (87) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,719 |
| 2 hops | 2,215 |
| 3 hops | 1,123 |
| 4 hops | 278 |
| 5 hops | 351 |
| 6 hops | 327 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter487 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- org.apache.camel » camel-catalog89 usages
- org.apache.pulsar » pulsar-client-admin70 usages
- org.apache.pulsar » pulsar-broker49 usages
- org.apache.camel.springboot » camel-jackson-starter37 usages
- org.apache.camel.springboot » camel-servlet-starter31 usages
- org.apache.camel.springboot » camel-http-starter29 usages
- org.apache.pulsar » pulsar-broker-common23 usages
- org.l2x6.cq » cq-maven-plugin22 usages
- org.apache.camel.springboot » camel-spring-boot19 usages
- com.tencent.bk.devops.ci.common » common-event18 usages
- org.apache.camel » camel-allcomponents16 usages
Computed from the dependency graph of build 20261202.2045 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-33681 | nvd.nist.gov |
| Package | apache/pulsar pulsar-client | github.com |
| Web | thread/fpo6x10trvn20hlk0dmnr5vlz5v4kl3d | lists.apache.org |
