cve.bz

CVE-2023-26154 pubnub: Insufficient Entropy

5.9 mediumExploit referenceEPSS 1.0%Fix available

Medium (5.9) in pubnub. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in pubnub 0.4.0, 4.3.0, 5.3.0.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 60th percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-331 Insufficient Entropy
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-26154 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-26154?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-26154?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-26154 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pubnub:c-corebefore 4.5.0
pubnub:kotlinbefore 7.7.0
pubnub:pubnubbefore 0.4.0
pubnub:pubnubbefore 7.2.0
pubnub:pubnubfrom 3.6.4 before 4.3.0
pubnub:pubnubfrom 4.3.1 before 5.2.0
pubnub:pubnubfrom 6.0.0 before 6.1.0
pubnub:pubnubfrom 6.2.0 before 6.19.0
pubnub:pubnubfrom 7.0.0 before 7.3.0
pubnub:pubnubfrom 7.3.1 before 7.4.0
pubnub:swiftbefore 6.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5844-q3fc-56rhnpmpubnub<7.4.07.4.0
GHSA-5844-q3fc-56rhMavencom.pubnub:pubnub-kotlin<7.7.07.7.0
GHSA-5844-q3fc-56rhMavencom.pubnub:pubnub<=4.6.5no fix published
GHSA-5844-q3fc-56rhGogithub.com/pubnub/go/v7<7.2.07.2.0
GHSA-5844-q3fc-56rhGogithub.com/pubnub/go<0.0.0-20231016150651-428517fef5b90.0.0-20231016150651-428517fef5b9
GHSA-5844-q3fc-56rhGogithub.com/pubnub/go/v6<6.1.1-0.20231016150651-428517fef5b96.1.1-0.20231016150651-428517fef5b9
GHSA-5844-q3fc-56rhGogithub.com/pubnub/go/v5<5.0.4-0.20231016150651-428517fef5b95.0.4-0.20231016150651-428517fef5b9
GHSA-5844-q3fc-56rhNuGetPubnub<6.19.06.19.0
GHSA-5844-q3fc-56rhSwiftURLgithub.com/pubnub/swift<6.2.06.2.0
GHSA-5844-q3fc-56rhRubyGemspubnub<5.3.05.3.0
GHSA-5844-q3fc-56rhcrates.iopubnub<0.4.00.4.0
GHSA-5844-q3fc-56rhPackagistpubnub/pubnub<6.1.06.1.0
GHSA-5844-q3fc-56rhPubpubnub<4.3.04.3.0
GHSA-5844-q3fc-56rhPyPIpubnub<7.3.07.3.0
GO-2023-2385Gogithub.com/pubnub/goall versionsno fix published
GO-2023-2385Gogithub.com/pubnub/go/v5all versionsno fix published
GO-2023-2385Gogithub.com/pubnub/go/v6all versionsno fix published
GO-2023-2385Gogithub.com/pubnub/go/v7<7.2.07.2.0
PYSEC-2026-1807PyPIpubnub<7.3.07.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250818T190335-1.1openSUSE-SU-2025:15469-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON