{"cve":"CVE-2023-26154","nvd":{"published":"2023-12-06T05:15:10.437","modified":"2026-06-17T05:42:47.943","status":"Modified","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.\r\r**Note:**\r\rIn order to exploit this vulnerability, the attacker needs to invest resources in preparing the attack and brute-force the encryption.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9},"cwes":["CWE-331"],"references":["https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0","https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70","https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119","https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384","https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372"],"products":["pubnub:c-core","pubnub:kotlin","pubnub:pubnub","pubnub:swift"],"source":"nvd","synced_at":"2026-10-19T21:42:34.585441961+00:00"},"epss":{"cve":"CVE-2023-26154","score":0.00963,"percentile":0.61676,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5844-q3fc-56rh","url":"https://osv.dev/vulnerability/GHSA-5844-q3fc-56rh","summary":"pubnub Insufficient Entropy vulnerability","modified":"2026-07-07T17:56:14.430840384Z","packages":[{"ecosystem":"npm","name":"pubnub","purl":"pkg:npm/pubnub","ranges":["<7.4.0"],"fixed":["7.4.0"]},{"ecosystem":"Maven","name":"com.pubnub:pubnub-kotlin","purl":"pkg:maven/com.pubnub/pubnub-kotlin","ranges":["<7.7.0"],"fixed":["7.7.0"]},{"ecosystem":"Maven","name":"com.pubnub:pubnub","purl":"pkg:maven/com.pubnub/pubnub","ranges":["<=4.6.5"],"fixed":[]},{"ecosystem":"Go","name":"github.com/pubnub/go/v7","purl":"pkg:golang/github.com/pubnub/go/v7","ranges":["<7.2.0"],"fixed":["7.2.0"]},{"ecosystem":"Go","name":"github.com/pubnub/go","purl":"pkg:golang/github.com/pubnub/go","ranges":["<0.0.0-20231016150651-428517fef5b9"],"fixed":["0.0.0-20231016150651-428517fef5b9"]},{"ecosystem":"Go","name":"github.com/pubnub/go/v6","purl":"pkg:golang/github.com/pubnub/go/v6","ranges":["<6.1.1-0.20231016150651-428517fef5b9"],"fixed":["6.1.1-0.20231016150651-428517fef5b9"]},{"ecosystem":"Go","name":"github.com/pubnub/go/v5","purl":"pkg:golang/github.com/pubnub/go/v5","ranges":["<5.0.4-0.20231016150651-428517fef5b9"],"fixed":["5.0.4-0.20231016150651-428517fef5b9"]},{"ecosystem":"NuGet","name":"Pubnub","purl":"pkg:nuget/Pubnub","ranges":["<6.19.0"],"fixed":["6.19.0"]},{"ecosystem":"SwiftURL","name":"github.com/pubnub/swift","purl":"pkg:swift/github.com/pubnub/swift","ranges":["<6.2.0"],"fixed":["6.2.0"]},{"ecosystem":"RubyGems","name":"pubnub","purl":"pkg:gem/pubnub","ranges":["<5.3.0"],"fixed":["5.3.0"]},{"ecosystem":"crates.io","name":"pubnub","purl":"pkg:cargo/pubnub","ranges":["<0.4.0"],"fixed":["0.4.0"]},{"ecosystem":"Packagist","name":"pubnub/pubnub","purl":"pkg:composer/pubnub/pubnub","ranges":["<6.1.0"],"fixed":["6.1.0"]},{"ecosystem":"Pub","name":"pubnub","purl":"pkg:pub/pubnub","ranges":["<4.3.0"],"fixed":["4.3.0"]},{"ecosystem":"PyPI","name":"pubnub","purl":"pkg:pypi/pubnub","ranges":["<7.3.0"],"fixed":["7.3.0"]}]},{"id":"GO-2023-2385","url":"https://osv.dev/vulnerability/GO-2023-2385","summary":"Insufficient entropy in AES-256-CBC in github.com/pubnub/go","modified":"2026-07-07T17:56:14.430840384Z","packages":[{"ecosystem":"Go","name":"github.com/pubnub/go","purl":"pkg:golang/github.com/pubnub/go","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/pubnub/go/v5","purl":"pkg:golang/github.com/pubnub/go/v5","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/pubnub/go/v6","purl":"pkg:golang/github.com/pubnub/go/v6","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/pubnub/go/v7","purl":"pkg:golang/github.com/pubnub/go/v7","ranges":["<7.2.0"],"fixed":["7.2.0"]}]},{"id":"PYSEC-2026-1807","url":"https://osv.dev/vulnerability/PYSEC-2026-1807","summary":"pubnub Insufficient Entropy vulnerability","modified":"2026-07-07T17:56:14.430840384Z","packages":[{"ecosystem":"PyPI","name":"pubnub","purl":"pkg:pypi/pubnub","ranges":["<7.3.0"],"fixed":["7.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}