5.9
MEDIUM
CVE-2023-26154
PubNub Insufficient Entropy in AES-256-CBC Encryption
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.

INFO

Published Date :

Dec. 6, 2023, 5:15 a.m.

Last Modified :

Nov. 21, 2024, 7:50 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.2
Affected Products

The following products are affected by CVE-2023-26154 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Pubnub c-core
2 Pubnub kotlin
3 Pubnub pubnub
4 Pubnub swift
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-26154.

URL Resource
https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0 Exploit Issue Tracking
https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70 Broken Link
https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 Patch
https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384 Third Party Advisory
https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372 Third Party Advisory
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373 Third Party Advisory
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374 Third Party Advisory
https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371 Third Party Advisory
https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380 Third Party Advisory
https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690 Third Party Advisory
https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376 Third Party Advisory
https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385 Third Party Advisory
https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375 Third Party Advisory
https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377 Third Party Advisory
https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378 Third Party Advisory
https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381 Third Party Advisory
https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379 Third Party Advisory
https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0 Exploit Issue Tracking
https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70 Broken Link
https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 Patch
https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384 Third Party Advisory
https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372 Third Party Advisory
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373 Third Party Advisory
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374 Third Party Advisory
https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371 Third Party Advisory
https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380 Third Party Advisory
https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690 Third Party Advisory
https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376 Third Party Advisory
https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385 Third Party Advisory
https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375 Third Party Advisory
https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377 Third Party Advisory
https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378 Third Party Advisory
https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381 Third Party Advisory
https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379 Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-26154 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-26154 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0
    Added Reference https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70
    Added Reference https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119
    Added Reference https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384
    Added Reference https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372
    Added Reference https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373
    Added Reference https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374
    Added Reference https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371
    Added Reference https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380
    Added Reference https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690
    Added Reference https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376
    Added Reference https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385
    Added Reference https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375
    Added Reference https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377
    Added Reference https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378
    Added Reference https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381
    Added Reference https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Dec. 11, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
    Changed Reference Type https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0 No Types Assigned https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0 Exploit, Issue Tracking
    Changed Reference Type https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70 No Types Assigned https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70 Broken Link
    Changed Reference Type https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 No Types Assigned https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 Patch
    Changed Reference Type https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384 No Types Assigned https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372 No Types Assigned https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373 No Types Assigned https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374 No Types Assigned https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371 No Types Assigned https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380 No Types Assigned https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690 No Types Assigned https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376 No Types Assigned https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385 No Types Assigned https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375 No Types Assigned https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377 No Types Assigned https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378 No Types Assigned https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381 No Types Assigned https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381 Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379 No Types Assigned https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379 Third Party Advisory
    Added CWE NIST CWE-331
    Added CPE Configuration OR *cpe:2.3:a:pubnub:c-core:*:*:*:*:*:*:*:* versions up to (excluding) 4.5.0 *cpe:2.3:a:pubnub:kotlin:*:*:*:*:*:*:*:* versions up to (excluding) 7.7.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions up to (excluding) 0.4.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions from (including) 3.6.4 up to (excluding) 4.3.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions from (including) 4.3.1 up to (excluding) 5.2.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions from (including) 6.0.0 up to (excluding) 6.1.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions from (including) 6.2.0 up to (excluding) 6.19.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions from (including) 7.0.0 up to (excluding) 7.3.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:go:*:* versions up to (excluding) 7.2.0 *cpe:2.3:a:pubnub:pubnub:*:*:*:*:*:-:*:* versions from (including) 7.3.1 up to (excluding) 7.4.0 *cpe:2.3:a:pubnub:swift:*:*:*:*:*:*:*:* versions up to (excluding) 6.2.0
  • CVE Received by [email protected]

    Dec. 06, 2023

    Action Type Old Value New Value
    Added 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.
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384 [No types assigned]
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385 [No types assigned]
    Added Reference Snyk https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0 [No types assigned]
    Added Reference Snyk https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70 [No types assigned]
    Added Reference Snyk https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119 [No types assigned]
    Added CWE Snyk CWE-331
    Added CVSS V3.1 Snyk AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-26154 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-26154 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.43 }} 0.12%

score

0.61645

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 31, 2025 11:57