ADVISORIES

Go Vulnerability Database

GO-2023-2385

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/pubnub/go
All versions, no fix listed
Gogithub.com/pubnub/go/v5
All versions, no fix listed
Gogithub.com/pubnub/go/v6
All versions, no fix listed
Gogithub.com/pubnub/go/v7
All versions before 7.2.0 (fixed in 7.2.0)

References