Advisory

GO-2023-2385

Also known as: CVE-2023-26154, GHSA-5844-q3fc-56rh, PYSEC-2026-1807

Summary

Insufficient entropy in AES-256-CBC in github.com/pubnub/go

Details

There is insufficient entropy in the implementation of the AES-256-CBC cryptographic algorithm. The provided encrypt functions are 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.

Users are encouraged to migrate to the new crypto package introduced in v7.2.0.

Severity

Not rated by the source.

Dates

Published
2024-01-02 18:32 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

github.com/pubnub/go

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/pubnub/go/v5

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/pubnub/go/v6

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/pubnub/go/v7

Go · All systems

Affected

  • introduced 0, fixed 7.2.0 (semver)

Fixed versions

7.2.0

Fix

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: Go Vulnerability Database · CC BY 4.0

Sources & licences