CVE-2023-45145
Reported by github_m · Published October 18, 2023
Redis is an in-memory database that persists on disk. On startup, Redis begins listening on a Unix socket before adjusting its permissions to the user-provided configuration. If a permissive umask(2) is used, this creates a race condition that enables, during a short period of time, another process to establish an otherwise unauthorized connection. This problem has existed since Redis 2.6.0-RC1. This issue has been addressed in Redis versions 7.2.2, 7.0.14 and 6.2.14. Users are advised to upgrade. For users unable to upgrade, it is possible to work around the problem by disabling Unix sockets, starting Redis with a restrictive umask, or storing the Unix socket file in a protected directory.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| valkey | Bitnami | 7.2.2, 7.0.14, 6.2.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 2.6.0-rc1, < 6.2.14, >= 7.0.0, < 7.0.14, >= 7.1.0, < 7.2.2 |
| redis | redis | 7.1.0, 7.0.0, 2.6.0-rc1 |
| amazon:2023 | redis6-devel | 0 |
| amazon:2023 | redis6 | 0 |
| amazon:2023 | redis6-doc | 0 |
| alpine | redis | 0, 0, 0 |
Timeline
- Oct 17, 2023 CVE Published
- Oct 19, 2023 EPSS Score (30 in total, the first dated here)
- Feb 3, 2026 Security Advisory (6 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-45145
vulnetix vdb fixes CVE-2023-45145
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-45145/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/redis/redis/security/advisories/GHSA-ghmp-889m-7cvx x_refsource_CONFIRM
- https://github.com/redis/redis/commit/03345ddc7faf7af079485f2cbe5d17a1611cbce1 x_refsource_MISC