GHSA-5844-q3fc-56rh

Source
https://github.com/advisories/GHSA-5844-q3fc-56rh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-5844-q3fc-56rh/GHSA-5844-q3fc-56rh.json
Aliases
Published
2023-12-06T06:30:20Z
Modified
2024-03-16T05:31:08.793563Z
Summary
pubnub Insufficient Entropy vulnerability
Details

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.

References

Affected packages

npm / pubnub

Package

Name
pubnub

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
7.4.0

Maven / com.pubnub:pubnub-kotlin

Package

Name
com.pubnub:pubnub-kotlin

Affected ranges

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

Affected versions

4.*

4.0.0
4.0.1

5.*

5.0.0
5.0.1
5.0.2
5.1.0
5.1.1
5.1.2
5.1.3

6.*

6.0.0
6.0.1
6.0.2
6.0.3
6.1.0
6.2.0
6.3.0

7.*

7.0.0
7.0.1
7.1.0
7.2.0
7.3.0
7.3.1
7.3.2
7.4.0
7.4.1
7.4.2
7.4.3
7.5.0
7.6.0

Maven / com.pubnub:pubnub

Package

Name
com.pubnub:pubnub

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Last affected
4.6.5

Affected versions

3.*

3.4
3.5.2
3.5.3
3.5.4
3.5.5
3.5.6
3.6.0
3.6.1
3.6.2
3.6.3
3.7.0
3.7.1
3.7.2
3.7.3
3.7.4
3.7.5
3.7.6
3.7.7
3.7.8
3.7.9
3.7.10
3.7.11

4.*

4.0.0-beta1
4.0.0-beta2
4.0.0-beta3
4.0.0-beta4
4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8
4.0.9
4.0.10
4.0.11
4.0.12
4.0.13
4.0.14
4.1.0
4.2.0
4.2.2
4.2.3
4.6.5

Go / github.com/pubnub/go/v7

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
7.2.0

Go / github.com/pubnub/go

Package

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Last affected
4.10.0

Go / github.com/pubnub/go/v6

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Last affected
6.1.0

Go / github.com/pubnub/go/v5

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Last affected
5.0.3

NuGet / Pubnub

Package

Name
Pubnub

Affected ranges

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

Affected versions

3.*

3.0.0
3.3.0.1-beta0
3.3.0.1-release-01-02-13-1
3.3.0.1-release-01-02-13-2
3.3.0.1-release-01-02-13-3
3.3.0.1-release-01-02-13-4
3.3.0.1-release-01-02-13-5
3.3.0.1-release-12-14-12
3.3.0.1-release-12-14-12-1
3.3.0.1-release-12-14-12-2
3.3.0.1-release-12-14-12-3
3.3.0.1-release-12-14-12-4
3.3.0.1-release-12-14-12-5
3.3.0.1-release-12-14-12-6
3.3.0.1-release-12-14-12-7
3.3.0.1-release-12-14-12-8
3.3.0.1-release-12-14-12-9
3.3.0.1-release-12-17-12-1
3.3.0.1-release-12-30-12-1
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4.0.29
4.0.30
4.0.31
4.0.32
4.0.33
4.1.0
4.2.0
4.3.0
4.4.0
4.5.0
4.6.0
4.7.0
4.8.0
4.9.0
4.10.0
4.11.0
4.12.0
4.13.0
4.14.0
4.15.0

5.*

5.0.0
5.0.1
5.1.0
5.2.0
5.3.0
5.4.0

6.*

6.0.0
6.1.0
6.2.0
6.3.0
6.4.0
6.5.0
6.6.0
6.7.0
6.8.0
6.9.0
6.10.0
6.11.0
6.12.0
6.13.0
6.14.0
6.15.0
6.16.0
6.17.0
6.18.0

SwiftURL / github.com/pubnub/swift

Package

Name
github.com/pubnub/swift

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
6.2.0

RubyGems / pubnub

Package

Name
pubnub

Affected ranges

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

Affected versions

0.*

0.1.2
0.1.4
0.1.5
0.1.7
0.1.8
0.1.9
0.1.10
0.1.11
0.1.12

3.*

3.3.0.1
3.3.0.2
3.3.0.5
3.3.0.6
3.3.0.7
3.4
3.4.1
3.5.1
3.5.3
3.5.5
3.5.6
3.5.7
3.5.8
3.5.12
3.5.14
3.6.7
3.6.9
3.6.10
3.7.0
3.7.1
3.7.5
3.7.7
3.7.9
3.7.10
3.7.11
3.7.12
3.8.0
3.8.1
3.8.2
3.8.4
3.8.5

4.*

4.0.0beta1
4.0.0beta2
4.0.0
4.0.1
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8
4.0.9
4.0.12
4.0.13
4.0.14
4.0.15
4.0.16
4.0.17
4.0.18
4.0.19
4.0.20
4.0.21
4.0.22
4.0.23
4.0.25
4.0.27
4.0.28
4.1.0
4.1.2
4.1.5
4.1.6
4.2.0
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.3.0
4.4.0
4.5.0
4.6.0
4.6.1
4.6.2
4.7.0
4.7.1
4.8.0

5.*

5.0.0
5.1.0
5.1.1
5.1.2
5.2.0
5.2.1
5.2.2

crates.io / pubnub

Package

Name
pubnub

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
0.4.0

Packagist / pubnub/pubnub

Package

Affected ranges

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

Affected versions

3.*

3.5
3.8.0
3.8.1
3.8.3

v3.*

v3.5.2
v3.5.3
v3.5.4
v3.6.0
v3.6.1
v3.6.2
v3.6.3
v3.7.0
v3.7.1
v3.7.2
v3.7.3
v3.7.4
v3.7.5
v3.7.6
v3.7.7
v3.7.8
v3.7.9

4.*

4.0.0-alpha
4.0.0-beta
4.0.0-beta.2
4.0.0-beta.3
4.0.0
4.1.0
4.1.1
4.1.2
4.1.3
4.1.4
4.1.5
4.1.7
4.2.0
4.3.0
4.4.0
4.5.0
4.6.0
4.7.0

5.*

5.0.0
5.1.0

6.*

6.0.0
6.0.1

Pub / pubnub

Package

Name
pubnub

Affected ranges

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

Affected versions

0.*

0.1.0
0.1.1

1.*

1.0.2
1.0.3
1.0.4
1.0.5
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.3.0
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4

2.*

2.0.0
2.0.1

3.*

3.0.0-rc
3.0.0-rc.1
3.0.0-rc.2
3.0.0
3.0.1
3.0.2
3.1.0
3.2.0

4.*

4.0.0-beta.0
4.0.0-beta.1
4.0.0-beta.2
4.0.0
4.1.0
4.1.1
4.1.2
4.1.3
4.2.1
4.2.2
4.2.3
4.2.4

PyPI / pubnub

Package

Name
pubnub

Affected ranges

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

Affected versions

3.*

3.3
3.3.1
3.3.2
3.3.4
3.3.5
3.5.0
3.5.1
3.5.2
3.5.3
3.7.0
3.7.1
3.7.2
3.7.3
3.7.4
3.7.5
3.7.6
3.7.7
3.7.8
3.8.0
3.8.1
3.8.2
3.8.3
3.9.0

4.*

4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8
4.0.9
4.0.10
4.0.11
4.0.12
4.0.13
4.1.0
4.1.2
4.1.3
4.1.4
4.1.5
4.1.6
4.1.7
4.2.0
4.2.1
4.3.0
4.4.0
4.5.0
4.5.1
4.5.2
4.5.3
4.5.4
4.6.0
4.6.1
4.7.0
4.8.0
4.8.1

5.*

5.0.0
5.0.1
5.1.0
5.1.1
5.1.2
5.1.3
5.1.4
5.2.0
5.2.1
5.3.0
5.3.1
5.4.0
5.5.0

6.*

6.0.0
6.0.1
6.1.0
6.2.0
6.3.0
6.3.1
6.3.2
6.3.3
6.4.0
6.4.1
6.5.0
6.5.1

7.*

7.0.0
7.0.1
7.0.2
7.1.0
7.2.0