Findings

CVE-2023-26154

pubnub Insufficient Entropy vulnerability

Published Dec 6, 2023 · updated Jul 7, 2026

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.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Dec 6, 2023 · GitHub Advisory Database

    Detected

    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

  2. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    pubnub fixed in 7.4.0; com.pubnub:pubnub-kotlin fixed in 7.7.0; github.com/pubnub/go/v7 fixed in 7.2.0; github.com/pubnub/go fixed in 0.0.0-20231016150651-428517fef5b9

  3. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    pubnub fixed in 7.4.0

  4. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    com.pubnub:pubnub-kotlin fixed in 7.7.0

  5. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    github.com/pubnub/go/v7 fixed in 7.2.0

  6. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    github.com/pubnub/go fixed in 0.0.0-20231016150651-428517fef5b9

  7. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    github.com/pubnub/go/v6 fixed in 6.1.1-0.20231016150651-428517fef5b9

  8. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    github.com/pubnub/go/v5 fixed in 5.0.4-0.20231016150651-428517fef5b9

  9. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    Pubnub fixed in 6.19.0

  10. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    github.com/pubnub/swift fixed in 6.2.0

  11. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    pubnub fixed in 5.3.0

  12. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    pubnub fixed in 0.4.0

  13. Jul 7, 2026 · GitHub Advisory Database

    Fix available

    pubnub/pubnub fixed in 6.1.0

  14. Jul 7, 2026 · GitHub Advisory Database

    Updated

    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

Affected

  • Go github.com/pubnub/go0 → 0.0.0-20231016150651-428517fef5b9
  • Go github.com/pubnub/go/v50 → 5.0.4-0.20231016150651-428517fef5b9
  • Go github.com/pubnub/go/v60 → 6.1.1-0.20231016150651-428517fef5b9
  • Go github.com/pubnub/go/v70 → 7.2.0
  • Maven com.pubnub:pubnub3.4, 3.5.2, 3.5.3
  • Maven com.pubnub:pubnub-kotlin0 → 7.7.0
  • NuGet Pubnub0 → 6.19.0
  • Packagist pubnub/pubnub0 → 6.1.0
  • RubyGems pubnub0 → 5.3.0
  • SwiftURL github.com/pubnub/swift0 → 6.2.0
  • crates.io pubnub0 → 0.4.0
  • npm pubnub0 → 7.4.0

Sources

References