CVE-2023-26154Pubnub C-core
Medium 5.9 No auth needed
Follow: this CVE · Pubnub · Pubnub C-core We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for C-core.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| pubnub | c-core | < 4.5.0 |
| pubnub | kotlin | < 7.7.0 |
| pubnub | pubnub | < 0.4.0 |
| pubnub | pubnub | < 7.2.0 |
| pubnub | pubnub | ≥ 3.6.4 < 4.3.0 |
| pubnub | pubnub | ≥ 4.3.1 < 5.2.0 |
| pubnub | pubnub | ≥ 6.0.0 < 6.1.0 |
| pubnub | pubnub | ≥ 6.2.0 < 6.19.0 |
| pubnub | pubnub | ≥ 7.0.0 < 7.3.0 |
| pubnub | pubnub | ≥ 7.3.1 < 7.4.0 |
| pubnub | swift | < 6.2.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Issue Tracking
- github.com Broken Link
- github.com Patch
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory
- security.snyk.io Third Party Advisory