Loading...
Skip to main content

CVE-2023-26154 — Vulnerability in pubnub — CVE Details

MEDIUM

pubnub Insufficient Entropy vulnerability

Published December 6, 2023Updated July 7, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published December 6, 2023 (1041 days ago).
  • Last revised July 7, 2026 — 944 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update pubnub to 0.4.0 or later
cargo update -p pubnub --precise 0.4.0
Composer
Update pubnub/pubnub to 6.1.0 or later
composer require "pubnub/pubnub:^6.1.0"
Bundler
Update pubnub to 5.3.0 or later
gem install pubnub -v 5.3.0
pip
Update pubnub to 7.3.0 or later
pip install "pubnub>=7.3.0"
Go
Update github.com/pubnub/go/v5 to 5.0.4-0.20231016150651-428517fef5b9 or later
go get github.com/pubnub/go/v5@v5.0.4-0.20231016150651-428517fef5b9
Go
Update github.com/pubnub/go to 0.0.0-20231016150651-428517fef5b9 or later
go get github.com/pubnub/go@v0.0.0-20231016150651-428517fef5b9
Go
Update github.com/pubnub/go/v6 to 6.1.1-0.20231016150651-428517fef5b9 or later
go get github.com/pubnub/go/v6@v6.1.1-0.20231016150651-428517fef5b9
Go
Update github.com/pubnub/go/v7 to 7.2.0 or later
go get github.com/pubnub/go/v7@v7.2.0
Maven
Update com.pubnub:pubnub-kotlin to 7.7.0 or later
<!-- Update pom.xml dependency version to 7.7.0 for com.pubnub:pubnub-kotlin -->
NuGet
Update Pubnub to 6.19.0 or later
dotnet add package Pubnub --version 6.19.0
npm
Update pubnub to 7.4.0 or later
npm install pubnub@7.4.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (12)

Affects 8 ecosystems: go (4), maven (2), crates.io (1), npm (1), nuget (1), packagist (1), pypi (1), rubygems (1).

PackageEcosystemAffectedFixed In
pubnub
crates.io
All versions0.4.0
pubnub/pubnub
packagist
3.5, 3.8.0, 3.8.1, 3.8.3 (+39 more)6.1.0
pubnub
rubygems
0.1.10, 0.1.11, 0.1.12, 0.1.2 (+90 more)5.3.0
pubnub
pypi
3.3, 3.3.1, 3.3.2, 3.3.4 (+84 more)7.3.0
github.com/pubnub/go/v5
go
All versions5.0.4-0.20231016150651-428517fef5b9
github.com/pubnub/go
go
All versions0.0.0-20231016150651-428517fef5b9
github.com/pubnub/go/v6
go
All versions6.1.1-0.20231016150651-428517fef5b9
github.com/pubnub/go/v7
go
All versions7.2.0
com.pubnub:pubnub-kotlin
maven
4.0.0, 4.0.1, 5.0.0, 5.0.1 (+25 more)7.7.0
Pubnub
nuget
3.0.0, 3.3.0.1, 3.3.0.1-beta0, 3.3.0.1-release-01-02-13-1 (+171 more)6.19.0
pubnub
npm
All versions7.4.0
com.pubnub:pubnub
maven
3.4, 3.5.2, 3.5.3, 3.5.4 (+42 more)Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2023-26154?
pubnub Insufficient Entropy vulnerability This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.9/10).
How do I check if my project is affected by CVE-2023-26154?
CVE-2023-26154 affects pubnub, pubnub/pubnub and github.com/pubnub/go/v5 (and 6 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-26154 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.9

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-5844-q3fc-56rh
GO-2023-2385
PYSEC-2026-1807

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies