# CVE-2023-26154: pubnub Insufficient Entropy vulnerability

- Severity: Medium 5.9 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-06T05:00:02.795Z
- Modified: 2026-07-07T17:56:14.430Z
- Also known as: GHSA-5844-q3fc-56rh, GO-2023-2385, PYSEC-2026-1807
- Weaknesses: CWE-331
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- pubnub: before 7.4.0; before 6.19.0; before 7.3.0; before 5.3.0; before 0.4.0; before 5.2.0; before 4.3.0
- com.pubnub:pubnub: before *
- github.com/pubnub/go: before *
- github.com/pubnub/go/v7: before 7.2.0
- pubnub/pubnub: before 6.1.0
- pubnub/c-core: before 4.5.0
- com.pubnub:pubnub-kotlin: before 7.7.0
- pubnub/swift: before 6.2.0
- pubnub (npm): before 7.4.0
- com.pubnub:pubnub-kotlin (Maven): before 7.7.0
- com.pubnub:pubnub (Maven): up to 4.6.5
- github.com/pubnub/go/v7 (Go): before 7.2.0
- github.com/pubnub/go (Go): before 0.0.0-20231016150651-428517fef5b9; all versions
- github.com/pubnub/go/v6 (Go): before 6.1.1-0.20231016150651-428517fef5b9; all versions
- github.com/pubnub/go/v5 (Go): before 5.0.4-0.20231016150651-428517fef5b9; all versions
- Pubnub (NuGet): before 6.19.0
- github.com/pubnub/swift (SwiftURL): before 6.2.0
- pubnub (RubyGems): before 5.3.0
- pubnub (crates.io): before 0.4.0
- pubnub/pubnub (Packagist): before 6.1.0
- pubnub (Pub): before 4.3.0
- pubnub (PyPI): before 7.3.0
- pubnub c-core: before 4.5.0
- pubnub kotlin: before 7.7.0
- pubnub pubnub: before 0.4.0; before 7.2.0; from 3.6.4 before 4.3.0; from 4.3.1 before 5.2.0; from 6.0.0 before 6.1.0; from 6.2.0 before 6.19.0; from 7.0.0 before 7.3.0; from 7.3.1 before 7.4.0
- pubnub swift: before 6.2.0

## Every score

- snyk: 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`
- GitHub: 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`
- NVD: 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`
- PyPA Advisory Database: 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`

## References

- <https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0> (exploit, issue-tracking, web)
- <https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385> (third-party-advisory, web)
- <https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70> (broken-link)
- <https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26154> (advisory)
- <https://github.com/pubnub/go/commit/428517fef5b901db7275d9f5a75eda89a4c28e08> (fix, web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pubnub/CVE-2023-26154.yml> (web)
- <https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js#L70> (web)
- <https://github.com/pubnub/javascript> (package)
- <https://github.com/advisories/GHSA-5844-q3fc-56rh> (advisory)
- <https://pypi.org/project/pubnub> (package)

## Sources

- CVE List: [CVE-2023-26154](https://www.cve.org/CVERecord?id=CVE-2023-26154), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5844-q3fc-56rh](https://github.com/advisories/GHSA-5844-q3fc-56rh), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2023-2385](https://pkg.go.dev/vuln/GO-2023-2385), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-26154](https://nvd.nist.gov/vuln/detail/CVE-2023-26154), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1807](https://osv.dev/vulnerability/PYSEC-2026-1807), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-26154 · Whole record: https://cve.day/CVE-2023-26154.json · Rebuilt by cve.day 2026-11-25T22:58:31.073Z
