CVEfocus › CVE database › CVE-2023-26154

CVE-2023-26154

CVSS 5.9 MediumEPSS 1.0% (higher than 60% of CVEs)Published 2023-12-06Updated 2024-08-02Assigner: snyk

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.

CWE-331

What to do

Fixed builds are available from Go, Maven, Packagist, PyPI, RubyGems, crates.io, npm: see the table below for the fixed version per release.

Maven has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Maven librarycom.pubnub:pubnubFix pendingGHSA-5844-q3fc-56rh
Maven librarycom.pubnub:pubnub-kotlinFixed7.7.0GHSA-5844-q3fc-56rh
Go librarygithub.com/pubnub/goFixed0.0.0-20231016150651-428517fef5b9GO-2023-2385
Go librarygithub.com/pubnub/go/v5Fixed5.0.4-0.20231016150651-428517fef5b9GO-2023-2385
Go librarygithub.com/pubnub/go/v6Fixed6.1.1-0.20231016150651-428517fef5b9GHSA-5844-q3fc-56rh
Go librarygithub.com/pubnub/go/v7Fixed7.2.0GO-2023-2385
crates.io librarypubnubFixed0.4.0GHSA-5844-q3fc-56rh
npm librarypubnubFixed7.4.0GHSA-5844-q3fc-56rh
PyPI librarypubnubFixed7.3.0GHSA-5844-q3fc-56rh
RubyGems librarypubnubFixed5.3.0GHSA-5844-q3fc-56rh
Packagist librarypubnub/pubnubFixed6.1.0GHSA-5844-q3fc-56rh

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.