CVE-2023-26154
pubnub Insufficient Entropy vulnerability
Published Dec 6, 2023 · updated Jul 7, 2026
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.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Dec 6, 2023 · GitHub Advisory Database
Detected
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
Jul 7, 2026 · GitHub Advisory Database
Fix available
pubnub fixed in 7.4.0; com.pubnub:pubnub-kotlin fixed in 7.7.0; github.com/pubnub/go/v7 fixed in 7.2.0; github.com/pubnub/go fixed in 0.0.0-20231016150651-428517fef5b9
Jul 7, 2026 · GitHub Advisory Database
Fix available
pubnub fixed in 7.4.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
com.pubnub:pubnub-kotlin fixed in 7.7.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
github.com/pubnub/go/v7 fixed in 7.2.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
github.com/pubnub/go fixed in 0.0.0-20231016150651-428517fef5b9
Jul 7, 2026 · GitHub Advisory Database
Fix available
github.com/pubnub/go/v6 fixed in 6.1.1-0.20231016150651-428517fef5b9
Jul 7, 2026 · GitHub Advisory Database
Fix available
github.com/pubnub/go/v5 fixed in 5.0.4-0.20231016150651-428517fef5b9
Jul 7, 2026 · GitHub Advisory Database
Fix available
Pubnub fixed in 6.19.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
github.com/pubnub/swift fixed in 6.2.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
pubnub fixed in 5.3.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
pubnub fixed in 0.4.0
Jul 7, 2026 · GitHub Advisory Database
Fix available
pubnub/pubnub fixed in 6.1.0
Jul 7, 2026 · GitHub Advisory Database
Updated
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
Affected
- Go github.com/pubnub/go0 → 0.0.0-20231016150651-428517fef5b9
- Go github.com/pubnub/go/v50 → 5.0.4-0.20231016150651-428517fef5b9
- Go github.com/pubnub/go/v60 → 6.1.1-0.20231016150651-428517fef5b9
- Go github.com/pubnub/go/v70 → 7.2.0
- Maven com.pubnub:pubnub3.4, 3.5.2, 3.5.3
- Maven com.pubnub:pubnub-kotlin0 → 7.7.0
- NuGet Pubnub0 → 6.19.0
- Packagist pubnub/pubnub0 → 6.1.0
- RubyGems pubnub0 → 5.3.0
- SwiftURL github.com/pubnub/swift0 → 6.2.0
- crates.io pubnub0 → 0.4.0
- npm pubnub0 → 7.4.0
Sources
- CVE.orgVulnerability recordCVE-2023-26154
Official CVE identifier
cve.org - GitHub Advisory DatabasePackage advisoryGHSA-5844-q3fc-56rh
GitHub Advisory Database record mirrored by OSV.
github.com - OSV.devPackage advisoryGHSA-5844-q3fc-56rh
pubnub Insufficient Entropy vulnerability
osv.dev