Advisory

GHSA-5844-q3fc-56rh

Also known as: CVE-2023-26154, GO-2023-2385, PYSEC-2026-1807

Summary

pubnub Insufficient Entropy vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-06 06:30 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

pubnub

npm · All systems

Affected

  • introduced 0, fixed 7.4.0 (semver)

Fixed versions

7.4.0

Fix

github.com/pubnub/go/v7

Go · All systems

Affected

  • introduced 0, fixed 7.2.0 (semver)

Fixed versions

7.2.0

Fix

github.com/pubnub/go

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20231016150651-428517fef5b9 (semver)

Fixed versions

0.0.0-20231016150651-428517fef5b9

Fix

  • Fixed version 0.0.0-20231016150651-428517fef5b9
    go get github.com/pubnub/[email protected]

github.com/pubnub/go/v6

Go · All systems

Affected

  • introduced 0, fixed 6.1.1-0.20231016150651-428517fef5b9 (semver)

Fixed versions

6.1.1-0.20231016150651-428517fef5b9

Fix

  • Fixed version 6.1.1-0.20231016150651-428517fef5b9
    go get github.com/pubnub/go/[email protected]

github.com/pubnub/go/v5

Go · All systems

Affected

  • introduced 0, fixed 5.0.4-0.20231016150651-428517fef5b9 (semver)

Fixed versions

5.0.4-0.20231016150651-428517fef5b9

Fix

  • Fixed version 5.0.4-0.20231016150651-428517fef5b9
    go get github.com/pubnub/go/[email protected]

Pubnub

NuGet · All systems

Affected

  • introduced 0, fixed 6.19.0 (ecosystem)

Fixed versions

6.19.0

Fix

The export has no generic command for this ecosystem.

pubnub

RubyGems · All systems

Affected

  • introduced 0, fixed 5.3.0 (ecosystem)

Fixed versions

5.3.0

Fix

The export has no generic command for this ecosystem.

pubnub

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p pubnub --precise 0.4.0

pubnub/pubnub

Packagist · All systems

Affected

  • introduced 0, fixed 6.1.0 (ecosystem)

Fixed versions

6.1.0

Fix

The export has no generic command for this ecosystem.

pubnub

PyPI · All systems

Affected

  • introduced 0, fixed 7.3.0 (ecosystem)

Fixed versions

7.3.0

Fix

  • Fixed version 7.3.0
    pip install --upgrade pubnub==7.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences