GHSA-c5fp-x2h5-vjv7

Source
https://github.com/advisories/GHSA-c5fp-x2h5-vjv7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-c5fp-x2h5-vjv7/GHSA-c5fp-x2h5-vjv7.json
Aliases
Published
2022-09-25T00:00:27Z
Modified
2023-11-08T04:09:40.274629Z
Details

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.

References

Affected packages

Maven / org.apache.pulsar:pulsar-client

Package

Name
org.apache.pulsar:pulsar-client

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
2.7.5

Affected versions

1.*

1.19.0-incubating
1.20.0-incubating
1.21.0-incubating
1.22.0-incubating
1.22.1-incubating

2.*

2.0.0-rc1-incubating
2.0.1-incubating
2.1.0-incubating
2.1.1-incubating
2.2.0
2.2.1
2.3.0
2.3.1
2.3.2
2.4.0
2.4.1
2.4.2
2.5.0
2.5.1
2.5.2
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.7.0
2.7.1
2.7.2
2.7.3
2.7.4

Maven / org.apache.pulsar:pulsar-client

Package

Name
org.apache.pulsar:pulsar-client

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.8.0
Fixed
2.8.4

Affected versions

2.*

2.8.0
2.8.1
2.8.2
2.8.3

Maven / org.apache.pulsar:pulsar-client

Package

Name
org.apache.pulsar:pulsar-client

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.9.0
Fixed
2.9.3

Affected versions

2.*

2.9.0
2.9.1
2.9.2

Maven / org.apache.pulsar:pulsar-client

Package

Name
org.apache.pulsar:pulsar-client

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.10.0
Fixed
2.10.1

Affected versions

2.*

2.10.0