pubnub Insufficient Entropy vulnerability
pubnub · com.pubnub:pubnub · Pubnub · github.com/pubnub/go
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| pubnub npm |
|
|
| com.pubnub:pubnub-kotlin Maven |
|
|
| com.pubnub:pubnub Maven |
pubnub · com.pubnub:pubnub · Pubnub · github.com/pubnub/go
| Product | Affected | Fixed in |
|---|---|---|
| pubnub npm |
|
|
| com.pubnub:pubnub-kotlin Maven |
|
|
| com.pubnub:pubnub Maven |
≤ 4.6.5| No fix yet |
| github.com/pubnub/go/v7 Go |
|
|
| github.com/pubnub/go Go |
|
|
| github.com/pubnub/go/v6 Go |
|
|
| github.com/pubnub/go/v5 Go |
|
|
| Pubnub NuGet |
|
|
| github.com/pubnub/swift Swift |
|
|
| pubnub RubyGems |
|
|
| pubnub crates.io |
|
|
| pubnub/pubnub Packagist |
|
|
| pubnub Pub |
|
|
| pubnub PyPI |
|
|
Versions of the package pubnub before 7.4.0; all versions of the package com.pubnub:pubnub; versions of the package pubnub before 6.19.0; all versions of the package github.com/pubnub/go; versions of the package github.com/pubnub/go/v7 before 7.2.0; versions of the package pubnub before 7.3.0; versions of the package pubnub/pubnub before 6.1.0; versions of the package pubnub before 5.3.0; versions of the package pubnub before 0.4.0; versions of the package pubnub/c-core before 4.5.0; versions of the package com.pubnub:pubnub-kotlin before 7.7.0; versions of the package pubnub/swift before 6.2.0; versions of the package pubnub before 5.2.0; versions of the package pubnub before 4.3.0 are vulnerable to Insufficient Entropy via the getKey function, due to inefficient implementation of the AES-256-CBC cryptographic algorithm. The provided encrypt function is less secure when hex encoding and trimming are applied, leaving half of the bits in the key always the same for every encoded message or file. **Note:** In order to exploit this vulnerability, the attacker needs to invest resources in preparing the attack and brute-force the encryption.
From the CVE record · snyk
Affected PubNub packages have insufficient entropy in getKey: when hex encoding and trimming are applied, half the key bits remain the same for every encrypted message or file. An attacker could brute-force the weakened encryption, but would need to invest resources in preparing the attack. The input does not specify network access, authentication, or user-interaction requirements.
Engineers using the listed PubNub packages should check installations below their ecosystem’s listed fixed version; Maven com.pubnub:pubnub versions through 4.6.5 are affected and have no listed fix.