Live threats

All CVEs / Pubnub

CVE-2023-26154Pubnub C-core

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Dec 6, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-331
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for C-core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/pubnub/go < 0.0.0-20231016150651-428517fef5b9 0.0.0-20231016150651-428517fef5b9 go get github.com/pubnub/go@v0.0.0-20231016150651-428517fef5b9
Go github.com/pubnub/go all no fixed version —
Go github.com/pubnub/go/v5 < 5.0.4-0.20231016150651-428517fef5b9 5.0.4-0.20231016150651-428517fef5b9 go get github.com/pubnub/go/v5@v5.0.4-0.20231016150651-428517fef5b9
Go github.com/pubnub/go/v5 all no fixed version —
Go github.com/pubnub/go/v6 < 6.1.1-0.20231016150651-428517fef5b9 6.1.1-0.20231016150651-428517fef5b9 go get github.com/pubnub/go/v6@v6.1.1-0.20231016150651-428517fef5b9
Go github.com/pubnub/go/v6 all no fixed version —
Go github.com/pubnub/go/v7 < 7.2.0 7.2.0 go get github.com/pubnub/go/v7@v7.2.0
Go github.com/pubnub/go/v7 < 7.2.0 7.2.0 go get github.com/pubnub/go/v7@v7.2.0
Maven com.pubnub:pubnub ≤ 4.6.5 no fixed version —
Maven com.pubnub:pubnub-kotlin < 7.7.0 7.7.0 —
NuGet Pubnub < 6.19.0 6.19.0 dotnet add package Pubnub --version 6.19.0
Packagist pubnub/pubnub < 6.1.0 6.1.0 composer require "pubnub/pubnub:^6.1.0"
Pub pubnub < 4.3.0 4.3.0 dart pub add pubnub:^4.3.0
PyPI pubnub < 7.3.0 7.3.0 pip install "pubnub>=7.3.0"
PyPI pubnub < 7.3.0 7.3.0 pip install "pubnub>=7.3.0"
RubyGems pubnub < 5.3.0 5.3.0 gem "pubnub", ">= 5.3.0"
crates.io pubnub < 0.4.0 0.4.0 cargo update -p pubnub --precise 0.4.0
npm pubnub < 7.4.0 7.4.0 npm install pubnub@7.4.0

Per OSV / GitHub Advisories (GHSA-5844-q3fc-56rh, GO-2023-2385, PYSEC-2026-1807). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pubnubc-core< 4.5.0
pubnubkotlin< 7.7.0
pubnubpubnub< 0.4.0
pubnubpubnub< 7.2.0
pubnubpubnub≥ 3.6.4 < 4.3.0
pubnubpubnub≥ 4.3.1 < 5.2.0
pubnubpubnub≥ 6.0.0 < 6.1.0
pubnubpubnub≥ 6.2.0 < 6.19.0
pubnubpubnub≥ 7.0.0 < 7.3.0
pubnubpubnub≥ 7.3.1 < 7.4.0
pubnubswift< 6.2.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.