{"id":"CVE-2023-26154","url":"https://www.cyber-defence.io/tools/cve/CVE-2023-26154","generatedAt":"2026-10-28T07:25:30.101Z","title":"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;…","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.","published":"2023-12-06T05:15:10.000Z","lastModified":"2026-06-17T05:42:48.000Z","status":"Modified","sourceIdentifier":"report@snyk.io","cvss":{"version":"3.1","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},"cwe":["CWE-331"],"affected":["pubnub/c-core","pubnub/kotlin","pubnub/pubnub","pubnub/swift"],"epss":{"score":0.00963,"percentile":0.61484,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.96%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0","tags":["Exploit","Issue Tracking"],"source":"report@snyk.io"},{"url":"https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70","tags":["Broken Link"],"source":"report@snyk.io"},{"url":"https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119","tags":["Patch"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379","tags":["Third Party Advisory"],"source":"report@snyk.io"},{"url":"https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0","tags":["Exploit","Issue Tracking"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-26154","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}