Skip to content

CVE-2023-26154 pubnub Insufficient Entropy vulnerability

MediumCVSS 5.9 EPSS 0.96% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
PHP

Description

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.

Upgrade path

16 packages: 15 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
pubnub github.com/pubnub/go/v7(Go) < 0.0.0-20231016150651-428517fef5b9; < 5.0.4-0.20231016150651-428517fef5b9; < 6.1.1-0.20231016150651-428517fef5b9; < 7.2.0 +1 more 0.0.0-20231016150651-428517fef5b9, 5.0.4-0.20231016150651-428517fef5b9, 6.1.1-0.20231016150651-428517fef5b9, 7.2.0 Partially fixed
com.pubnub/pubnub(Maven) <= 4.6.5; = 3.4; = 3.5.2; = 3.5.3 +43 more after 4.6.5 Fixed
com.pubnub/pubnub-kotlin(Maven) < 7.7.0; = 4.0.0; = 4.0.1; = 5.0.0 +26 more 7.7.0 Fixed
crates.io pubnub(crates.io) < 0.4.0 0.4.0 Fixed
github.com/pubnub/swift(SwiftURL) < 6.2.0 6.2.0 Fixed
npm pubnub(npm) < 7.4.0 7.4.0 Fixed
nuget Pubnub(NuGet) < 6.19.0; = 3.0.0; = 3.3.0.1; = 3.3.0.1-beta0 +172 more 6.19.0 Fixed
pubnub(Pub) < 4.3.0; = 0.1.0; = 0.1.1; = 1.0.2 +36 more 4.3.0 Fixed
pubnub c-core < 4.5.0 4.5.0 Fixed
pubnub kotlin < 7.7.0 7.7.0 Fixed
pubnub swift < 6.2.0 6.2.0 Fixed
pubnub/pubnub < 0.4.0; < 7.2.0; >= 3.6.4, < 4.3.0; >= 4.3.1, < 5.2.0 +4 more 0.4.0, 4.3.0, 5.2.0, 6.1.0, 6.19.0, 7.2.0, 7.3.0, 7.4.0 Fixed
pubnub/pubnub(Packagist) < 6.1.0; = 3.5; = 3.8.0; = 3.8.1 +40 more 6.1.0 Fixed
pypi pubnub(PyPI) < 7.3.0; = 3.3; = 3.3.1; = 3.3.2 +85 more 7.3.0 Fixed
rubygems pubnub(RubyGems) < 5.3.0; = 0.1.2; = 0.1.4; = 0.1.5 +91 more 5.3.0 Fixed
swifturl github.com/pubnub/swift(SwiftURL) < 6.2.0 6.2.0 Fixed

Affected products

ProductAffected versionsFixed in
npm pubnub(npm) < 7.4.0 7.4.0
com.pubnub/pubnub-kotlin(Maven) < 7.7.0 7.7.0
com.pubnub/pubnub-kotlin(Maven) = 4.0.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 4.0.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.0.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.0.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.0.2 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.1.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.1.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.1.2 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 5.1.3 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.0.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.0.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.0.2 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.0.3 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.1.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.2.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 6.3.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.0.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.0.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.1.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.2.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.3.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.3.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.3.2 No fix listed
Show 175 more
ProductAffected versionsFixed in
com.pubnub/pubnub-kotlin(Maven) = 7.4.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.4.1 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.4.2 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.4.3 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.5.0 No fix listed
com.pubnub/pubnub-kotlin(Maven) = 7.6.0 No fix listed
com.pubnub/pubnub(Maven) <= 4.6.5 No fix listed
com.pubnub/pubnub(Maven) = 3.4 No fix listed
com.pubnub/pubnub(Maven) = 3.5.2 No fix listed
com.pubnub/pubnub(Maven) = 3.5.3 No fix listed
com.pubnub/pubnub(Maven) = 3.5.4 No fix listed
com.pubnub/pubnub(Maven) = 3.5.5 No fix listed
com.pubnub/pubnub(Maven) = 3.5.6 No fix listed
com.pubnub/pubnub(Maven) = 3.6.0 No fix listed
com.pubnub/pubnub(Maven) = 3.6.1 No fix listed
com.pubnub/pubnub(Maven) = 3.6.2 No fix listed
com.pubnub/pubnub(Maven) = 3.6.3 No fix listed
com.pubnub/pubnub(Maven) = 3.7.0 No fix listed
com.pubnub/pubnub(Maven) = 3.7.1 No fix listed
com.pubnub/pubnub(Maven) = 3.7.10 No fix listed
com.pubnub/pubnub(Maven) = 3.7.11 No fix listed
com.pubnub/pubnub(Maven) = 3.7.2 No fix listed
com.pubnub/pubnub(Maven) = 3.7.3 No fix listed
com.pubnub/pubnub(Maven) = 3.7.4 No fix listed
com.pubnub/pubnub(Maven) = 3.7.5 No fix listed
com.pubnub/pubnub(Maven) = 3.7.6 No fix listed
com.pubnub/pubnub(Maven) = 3.7.7 No fix listed
com.pubnub/pubnub(Maven) = 3.7.8 No fix listed
com.pubnub/pubnub(Maven) = 3.7.9 No fix listed
com.pubnub/pubnub(Maven) = 4.0.0 No fix listed
com.pubnub/pubnub(Maven) = 4.0.0-beta1 No fix listed
com.pubnub/pubnub(Maven) = 4.0.0-beta2 No fix listed
com.pubnub/pubnub(Maven) = 4.0.0-beta3 No fix listed
com.pubnub/pubnub(Maven) = 4.0.0-beta4 No fix listed
com.pubnub/pubnub(Maven) = 4.0.1 No fix listed
com.pubnub/pubnub(Maven) = 4.0.10 No fix listed
com.pubnub/pubnub(Maven) = 4.0.11 No fix listed
com.pubnub/pubnub(Maven) = 4.0.12 No fix listed
com.pubnub/pubnub(Maven) = 4.0.13 No fix listed
com.pubnub/pubnub(Maven) = 4.0.14 No fix listed
com.pubnub/pubnub(Maven) = 4.0.2 No fix listed
com.pubnub/pubnub(Maven) = 4.0.3 No fix listed
com.pubnub/pubnub(Maven) = 4.0.4 No fix listed
com.pubnub/pubnub(Maven) = 4.0.5 No fix listed
com.pubnub/pubnub(Maven) = 4.0.6 No fix listed
com.pubnub/pubnub(Maven) = 4.0.7 No fix listed
com.pubnub/pubnub(Maven) = 4.0.8 No fix listed
com.pubnub/pubnub(Maven) = 4.0.9 No fix listed
com.pubnub/pubnub(Maven) = 4.1.0 No fix listed
com.pubnub/pubnub(Maven) = 4.2.0 No fix listed
com.pubnub/pubnub(Maven) = 4.2.2 No fix listed
com.pubnub/pubnub(Maven) = 4.2.3 No fix listed
com.pubnub/pubnub(Maven) = 4.6.5 No fix listed
pubnub github.com/pubnub/go/v7(Go) < 7.2.0 7.2.0
pubnub github.com/pubnub/go/v7(Go) < 0.0.0-20231016150651-428517fef5b9 0.0.0-20231016150651-428517fef5b9
pubnub github.com/pubnub/go/v7(Go) < 6.1.1-0.20231016150651-428517fef5b9 6.1.1-0.20231016150651-428517fef5b9
pubnub github.com/pubnub/go/v7(Go) < 5.0.4-0.20231016150651-428517fef5b9 5.0.4-0.20231016150651-428517fef5b9
nuget Pubnub(NuGet) < 6.19.0 6.19.0
nuget Pubnub(NuGet) = 3.0.0 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-beta0 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-01-02-13-1 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-01-02-13-2 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-01-02-13-3 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-01-02-13-4 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-01-02-13-5 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-1 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-2 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-3 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-4 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-5 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-6 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-7 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-8 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-14-12-9 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-17-12-1 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-30-12-1 No fix listed
nuget Pubnub(NuGet) = 3.3.0.1-release-12-30-12-2 No fix listed
nuget Pubnub(NuGet) = 3.3.0.2 No fix listed
nuget Pubnub(NuGet) = 3.3.0.2-rc1 No fix listed
nuget Pubnub(NuGet) = 3.3.0.2-rc2 No fix listed
nuget Pubnub(NuGet) = 3.4.0.1 No fix listed
nuget Pubnub(NuGet) = 3.4.0.1-rc1 No fix listed
nuget Pubnub(NuGet) = 3.4.0.1-rc2 No fix listed
nuget Pubnub(NuGet) = 3.4.0.1-rc3 No fix listed
nuget Pubnub(NuGet) = 3.4.0.2 No fix listed
nuget Pubnub(NuGet) = 3.4.0.2-rc1 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1-rc1 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1-rc2 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1-rc3 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1-rc4 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1-rc5 No fix listed
nuget Pubnub(NuGet) = 3.5.0.1-rc6 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1-rc1 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1-rc2 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1-rc3 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1-rc4 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1-rc5 No fix listed
nuget Pubnub(NuGet) = 3.6.0.1-rc6 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc1 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc2 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc3 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc4 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc5 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc6 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc7 No fix listed
nuget Pubnub(NuGet) = 3.6.0.2-rc8 No fix listed
nuget Pubnub(NuGet) = 3.7.0 No fix listed
nuget Pubnub(NuGet) = 3.7.0-rc1 No fix listed
nuget Pubnub(NuGet) = 3.7.0-rc2 No fix listed
nuget Pubnub(NuGet) = 3.7.2-rc1 No fix listed
nuget Pubnub(NuGet) = 3.7.3 No fix listed
nuget Pubnub(NuGet) = 3.7.3-rc1 No fix listed
nuget Pubnub(NuGet) = 3.7.5 No fix listed
nuget Pubnub(NuGet) = 3.7.5-rc1 No fix listed
nuget Pubnub(NuGet) = 3.7.6 No fix listed
nuget Pubnub(NuGet) = 3.7.6-rc1 No fix listed
nuget Pubnub(NuGet) = 3.7.7 No fix listed
nuget Pubnub(NuGet) = 3.7.7-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.1 No fix listed
nuget Pubnub(NuGet) = 3.8.1-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.2 No fix listed
nuget Pubnub(NuGet) = 3.8.2-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.3 No fix listed
nuget Pubnub(NuGet) = 3.8.3-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.4 No fix listed
nuget Pubnub(NuGet) = 3.8.4-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.5 No fix listed
nuget Pubnub(NuGet) = 3.8.5-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.6 No fix listed
nuget Pubnub(NuGet) = 3.8.6-rc1 No fix listed
nuget Pubnub(NuGet) = 3.8.7 No fix listed
nuget Pubnub(NuGet) = 3.8.7-rc1 No fix listed
nuget Pubnub(NuGet) = 4.0.1-rc1 No fix listed
nuget Pubnub(NuGet) = 4.0.1.1-rc1 No fix listed
nuget Pubnub(NuGet) = 4.0.1.2-rc1 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc1 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc10 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc11 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc12 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc13 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc2 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc3 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc4 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc5 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc6 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc7 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc8 No fix listed
nuget Pubnub(NuGet) = 4.0.1.3-rc9 No fix listed
nuget Pubnub(NuGet) = 4.0.1.4 No fix listed
nuget Pubnub(NuGet) = 4.0.1.5 No fix listed
nuget Pubnub(NuGet) = 4.0.1.6 No fix listed
nuget Pubnub(NuGet) = 4.0.1.7 No fix listed
nuget Pubnub(NuGet) = 4.0.10 No fix listed
nuget Pubnub(NuGet) = 4.0.11 No fix listed
nuget Pubnub(NuGet) = 4.0.12 No fix listed
nuget Pubnub(NuGet) = 4.0.13 No fix listed
nuget Pubnub(NuGet) = 4.0.14 No fix listed
nuget Pubnub(NuGet) = 4.0.15 No fix listed
nuget Pubnub(NuGet) = 4.0.16 No fix listed
nuget Pubnub(NuGet) = 4.0.17 No fix listed
nuget Pubnub(NuGet) = 4.0.18 No fix listed
nuget Pubnub(NuGet) = 4.0.19 No fix listed
nuget Pubnub(NuGet) = 4.0.2 No fix listed
nuget Pubnub(NuGet) = 4.0.2.2 No fix listed
nuget Pubnub(NuGet) = 4.0.20 No fix listed
nuget Pubnub(NuGet) = 4.0.21 No fix listed
nuget Pubnub(NuGet) = 4.0.22 No fix listed
nuget Pubnub(NuGet) = 4.0.23 No fix listed
nuget Pubnub(NuGet) = 4.0.24 No fix listed

References