Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS01ODQ0LXEzZmMtNTZyaM4AA3lZ
pubnub Insufficient Entropy vulnerability
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.
Permalink: https://github.com/advisories/GHSA-5844-q3fc-56rhJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01ODQ0LXEzZmMtNTZyaM4AA3lZ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 5 months ago
Updated: 3 months ago
CVSS Score: 5.9
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-5844-q3fc-56rh, CVE-2023-26154
References:
- https://nvd.nist.gov/vuln/detail/CVE-2023-26154
- https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119
- https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0
- https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384
- https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374
- https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371
- https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380
- https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690
- https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376
- https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385
- https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375
- https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377
- https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378
- https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381
- https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379
- https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js#L70
- https://github.com/advisories/GHSA-5844-q3fc-56rh
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pubnub/CVE-2023-26154.yml
Blast Radius: 82.5
Affected Packages
swift:github.com/pubnub/swift
Affected Version Ranges: < 6.2.0Fixed in: 6.2.0
pypi:pubnub
Dependent packages: 8Dependent repositories: 192
Downloads: 102,621 last month
Affected Version Ranges: < 7.3.0
Fixed in: 7.3.0
All affected versions: 3.3.1, 3.3.2, 3.3.4, 3.3.5, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.9.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 4.1.0, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.2.0, 4.2.1, 4.3.0, 4.4.0, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.5.4, 4.6.0, 4.6.1, 4.7.0, 4.8.0, 4.8.1, 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.2.0, 5.2.1, 5.3.0, 5.3.1, 5.4.0, 5.5.0, 6.0.0, 6.0.1, 6.1.0, 6.2.0, 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 7.0.0, 7.0.1, 7.0.2, 7.1.0, 7.2.0
All unaffected versions: 7.3.0, 7.3.1, 7.3.2, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4
pub:pubnub
Dependent packages: 5Dependent repositories: 17
Downloads:
Affected Version Ranges: < 4.3.0
Fixed in: 4.3.0
All affected versions: 0.1.0, 0.1.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 2.0.0, 2.0.1, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.2.0, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.2.1, 4.2.2, 4.2.3, 4.2.4
All unaffected versions: 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4
packagist:pubnub/pubnub
Dependent packages: 19Dependent repositories: 66
Downloads: 2,691,935 total
Affected Version Ranges: < 6.1.0
Fixed in: 6.1.0
All affected versions: 3.5.2, 3.5.3, 3.5.4, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.8.0, 3.8.1, 3.8.3, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.7, 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 5.0.0, 5.1.0, 6.0.0, 6.0.1
All unaffected versions: 6.1.0, 6.1.1, 6.1.2, 6.1.3
cargo:pubnub
Dependent packages: 0Dependent repositories: 0
Downloads: 1,951 total
Affected Version Ranges: < 0.4.0
Fixed in: 0.4.0
All affected versions: 0.2.0, 0.2.1, 0.3.0
All unaffected versions: 0.4.0, 0.4.1, 0.5.0, 0.6.0
rubygems:pubnub
Dependent packages: 12Dependent repositories: 116
Downloads: 6,374,349 total
Affected Version Ranges: < 5.3.0
Fixed in: 5.3.0
All affected versions: 0.1.2, 0.1.4, 0.1.5, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 3.4.1, 3.5.1, 3.5.3, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.12, 3.5.14, 3.6.7, 3.6.9, 3.6.10, 3.7.0, 3.7.1, 3.7.5, 3.7.7, 3.7.9, 3.7.10, 3.7.11, 3.7.12, 3.8.0, 3.8.1, 3.8.2, 3.8.4, 3.8.5, 4.0.0, 4.0.1, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.12, 4.0.13, 4.0.14, 4.0.15, 4.0.16, 4.0.17, 4.0.18, 4.0.19, 4.0.20, 4.0.21, 4.0.22, 4.0.23, 4.0.25, 4.0.27, 4.0.28, 4.1.0, 4.1.2, 4.1.5, 4.1.6, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.6.1, 4.6.2, 4.7.0, 4.7.1, 4.8.0, 5.0.0, 5.1.0, 5.1.1, 5.1.2, 5.2.0, 5.2.1, 5.2.2
All unaffected versions: 5.3.0, 5.3.1, 5.3.2, 5.3.3
nuget:Pubnub
Dependent packages: 0Dependent repositories: 0
Downloads: 613,612 total
Affected Version Ranges: < 6.19.0
Fixed in: 6.19.0
All affected versions: 3.0.0, 3.7.0, 3.7.3, 3.7.5, 3.7.6, 3.7.7, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 4.0.2, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 4.0.14, 4.0.15, 4.0.16, 4.0.17, 4.0.18, 4.0.19, 4.0.20, 4.0.21, 4.0.22, 4.0.23, 4.0.24, 4.0.25, 4.0.26, 4.0.27, 4.0.28, 4.0.29, 4.0.30, 4.0.31, 4.0.32, 4.0.33, 4.1.0, 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.0, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.14.0, 4.15.0, 5.0.0, 5.0.1, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 6.0.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0, 6.5.0, 6.6.0, 6.7.0, 6.8.0, 6.9.0, 6.10.0, 6.11.0, 6.12.0, 6.13.0, 6.14.0, 6.15.0, 6.16.0, 6.17.0, 6.18.0
All unaffected versions: 6.19.0, 6.19.1, 6.19.2, 6.19.3, 6.19.4, 6.19.5, 6.19.6, 6.19.7, 6.20.0
go:github.com/pubnub/go/v5
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 5.0.3
No known fixed version
All affected versions: 5.0.0, 5.0.1, 5.0.2, 5.0.3
go:github.com/pubnub/go/v6
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 6.1.0
No known fixed version
All affected versions: 6.0.0, 6.0.1, 6.0.2, 6.1.0
go:github.com/pubnub/go
Dependent packages: 11Dependent repositories: 9
Downloads:
Affected Version Ranges: <= 4.10.0
No known fixed version
All affected versions: 3.7.0, 3.7.1, 3.9.3, 3.9.4, 3.10.0, 3.11.0, 3.12.0, 3.13.0, 3.14.0, 3.15.0, 3.16.0, 3.16.1, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, 4.2.8, 4.3.0, 4.3.1, 4.4.0, 4.5.0, 4.5.1, 4.5.2, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.6.4, 4.6.5, 4.6.6, 4.7.0, 4.8.0, 4.9.0, 4.9.1, 4.10.0
go:github.com/pubnub/go/v7
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: < 7.2.0
Fixed in: 7.2.0
All affected versions: 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2
All unaffected versions: 7.2.0, 7.2.1
maven:com.pubnub:pubnub
Dependent packages: 7Dependent repositories: 35
Downloads:
Affected Version Ranges: <= 4.6.5
No known fixed version
All affected versions: 3.5.2, 3.5.3, 3.5.4, 3.5.5, 3.5.6, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.7.10, 3.7.11, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 4.0.14, 4.1.0, 4.2.0, 4.2.2, 4.2.3, 4.6.5
maven:com.pubnub:pubnub-kotlin
Dependent packages: 9Dependent repositories: 5
Downloads:
Affected Version Ranges: < 7.7.0
Fixed in: 7.7.0
All affected versions: 4.0.0, 4.0.1, 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.1.0, 6.2.0, 6.3.0, 7.0.0, 7.0.1, 7.1.0, 7.2.0, 7.3.0, 7.3.1, 7.3.2, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.5.0, 7.6.0
All unaffected versions: 7.7.0, 7.7.1, 7.7.2, 7.7.3, 7.7.4, 7.8.0, 7.8.1, 8.0.0, 9.0.0, 9.1.0
npm:pubnub
Dependent packages: 226Dependent repositories: 3,759
Downloads: 681,027 last month
Affected Version Ranges: < 7.4.0
Fixed in: 7.4.0
All affected versions: 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.3.1, 3.4.4, 3.5.3, 3.5.4, 3.5.43, 3.5.45, 3.5.47, 3.5.48, 3.6.1, 3.6.2, 3.6.3, 3.6.4, 3.6.5, 3.6.6, 3.6.7, 3.6.8, 3.7.0, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.7.10, 3.7.11, 3.7.12, 3.7.13, 3.7.14, 3.7.15, 3.7.16, 3.7.17, 3.7.18, 3.7.19, 3.7.20, 3.7.21, 3.7.22, 3.7.23, 3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.10.0, 3.10.2, 3.10.3, 3.11.0, 3.12.0, 3.13.0, 3.14.0, 3.14.1, 3.14.2, 3.14.3, 3.14.4, 3.14.5, 3.14.6, 3.14.7, 3.15.0, 3.15.1, 3.15.2, 3.16.0, 3.16.1, 3.16.3, 3.16.4, 3.16.5, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.5, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.0, 4.9.1, 4.10.0, 4.12.0, 4.13.0, 4.14.0, 4.15.0, 4.15.1, 4.16.1, 4.16.2, 4.17.0, 4.18.0, 4.19.0, 4.20.0, 4.20.1, 4.20.2, 4.20.3, 4.21.0, 4.21.1, 4.21.2, 4.21.5, 4.21.6, 4.21.7, 4.22.0, 4.23.0, 4.24.0, 4.24.1, 4.24.2, 4.24.3, 4.24.4, 4.24.5, 4.24.6, 4.25.0, 4.25.1, 4.25.2, 4.26.0, 4.26.1, 4.27.0, 4.27.1, 4.27.2, 4.27.3, 4.27.4, 4.27.5, 4.27.6, 4.28.0, 4.28.1, 4.28.2, 4.28.3, 4.28.4, 4.29.0, 4.29.1, 4.29.2, 4.29.3, 4.29.4, 4.29.5, 4.29.6, 4.29.7, 4.29.8, 4.29.9, 4.29.10, 4.29.11, 4.30.0, 4.30.1, 4.31.0, 4.32.0, 4.32.1, 4.33.0, 4.33.1, 4.34.0, 4.34.1, 4.34.2, 4.35.0, 4.36.0, 4.37.0, 5.0.0, 5.0.1, 7.0.0, 7.0.1, 7.1.1, 7.1.2, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.3.0, 7.3.1, 7.3.2, 7.3.3
All unaffected versions: 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.5.0, 7.6.0, 7.6.1, 7.6.2, 7.6.3, 8.0.0, 8.0.1