Insufficient Entropy Affecting pubnub package, versions <5.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Entropy vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-PUBNUB-6098377
  • published5 Dec 2023
  • disclosed13 Aug 2023
  • creditVarga Daniel

Introduced: 13 Aug 2023

CVE-2023-26154  (opens in a new tab)
CWE-331  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade pubnub to version 5.3.0 or higher.

Overview

Affected versions of this package 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.

CVSS Scores

version 3.1