Vulnerability · Published Oct 18, 2023 · Assigned by GitHub_M
CVE-2023-45145Redis Unix-domain socket may have be exposed with the wrong permissions for a short time window.
Low 3.6
In plain English
A low-severity security flaw in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | redis | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:9 | redis | 6.2.17-1.el9_5 | ALSA-2025:0693 |
| AlmaLinux:9 | redis | 7.2.6-1.module_el9.5.0+130+36ae7635 | ALSA-2024:10869 |
| AlmaLinux:8 | redis-devel | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:9 | redis-devel | 7.2.6-1.module_el9.5.0+130+36ae7635 | ALSA-2024:10869 |
| AlmaLinux:9 | redis-devel | 6.2.17-1.el9_5 | ALSA-2025:0693 |
| AlmaLinux:8 | redis-doc | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:9 | redis-doc | 7.2.6-1.module_el9.5.0+130+36ae7635 | ALSA-2024:10869 |
| AlmaLinux:9 | redis-doc | 6.2.17-1.el9_5 | ALSA-2025:0693 |
| Alpine:v3.20 | redis | 7.2.2-r0 | ALPINE-CVE-2023-45145 |
| Alpine:v3.21 | redis | 7.2.2-r0 | ALPINE-CVE-2023-45145 |
| Alpine:v3.22 | redis | 7.2.2-r0 | ALPINE-CVE-2023-45145 |
| Alpine:v3.23 | redis | 7.2.2-r0 | ALPINE-CVE-2023-45145 |
| Alpine:v3.24 | redis | 7.2.2-r0 | ALPINE-CVE-2023-45145 |
| Debian:12 | redis | 5:7.0.15-1~deb12u1 | DSA-5610-1 |
| Debian:12 | redis | 5:7.0.15-1~deb12u1 | DEBIAN-CVE-2023-45145 |
| Debian:13 | redis | 5:7.0.14-1 | DEBIAN-CVE-2023-45145 |
| Debian:14 | redis | 5:7.0.14-1 | DEBIAN-CVE-2023-45145 |
| Rocky Linux:8 | redis | 0:6.2.17-1.module+el8.10.0+1923+5b85c6a7 | RLSA-2025:0595 |
| Rocky Linux:9 | redis | 0:6.2.17-1.el9_5 | RLSA-2025:0693 |
Affected products (as reported)
Weakness: CWE-668 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
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
- https://lists.debian.org/debian-lts-announce/2023/10/msg00032.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/464JPNBWE433ZGYXO3KN72VR3KJPWHAW/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BNEK2K4IE7MPKRD6H36JXZMJKYS6I5GQ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DZMGTTV5XM4LA66FSIJSETNBBRRPJYOQ/
- https://security.netapp.com/advisory/ntap-20231116-0014/