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.

Severity (CVSS 3.1)3.6Low
Exploit odds (30 days)0.4%top 61.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8redis6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux:9redis6.2.17-1.el9_5ALSA-2025:0693
AlmaLinux:9redis7.2.6-1.module_el9.5.0+130+36ae7635ALSA-2024:10869
AlmaLinux:8redis-devel6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux:9redis-devel7.2.6-1.module_el9.5.0+130+36ae7635ALSA-2024:10869
AlmaLinux:9redis-devel6.2.17-1.el9_5ALSA-2025:0693
AlmaLinux:8redis-doc6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux:9redis-doc7.2.6-1.module_el9.5.0+130+36ae7635ALSA-2024:10869
AlmaLinux:9redis-doc6.2.17-1.el9_5ALSA-2025:0693
Alpine:v3.20redis7.2.2-r0ALPINE-CVE-2023-45145
Alpine:v3.21redis7.2.2-r0ALPINE-CVE-2023-45145
Alpine:v3.22redis7.2.2-r0ALPINE-CVE-2023-45145
Alpine:v3.23redis7.2.2-r0ALPINE-CVE-2023-45145
Alpine:v3.24redis7.2.2-r0ALPINE-CVE-2023-45145
Debian:12redis5:7.0.15-1~deb12u1DSA-5610-1
Debian:12redis5:7.0.15-1~deb12u1DEBIAN-CVE-2023-45145
Debian:13redis5:7.0.14-1DEBIAN-CVE-2023-45145
Debian:14redis5:7.0.14-1DEBIAN-CVE-2023-45145
Rocky Linux:8redis0:6.2.17-1.module+el8.10.0+1923+5b85c6a7RLSA-2025:0595
Rocky Linux:9redis0:6.2.17-1.el9_5RLSA-2025:0693

Affected products (as reported)

VendorProductVersions
redis redis >= 2.6.0-rc1, < 6.2.14>= 7.0.0, < 7.0.14>= 7.1.0, < 7.2.2

Weakness: CWE-668 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

References