Skip to content
OpenAdvisories
Low · 3.6 CVE-2023-45145 EUVD-2023-49453

Redis Unix-domain socket may have be exposed with the wrong permissions for a short time window.

Published Oct 18, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

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 products

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:7.0.14-1 —
Debian 13 redis 5:7.0.14-1 —
Debian 12 redis 5:7.0.15-1~deb12u1 DSA-5610-1
Debian 11 redis 5:6.0.16-1+deb11u3 DLA-3885-1
Debian 10 redis 5:5.0.14-1+deb10u5 DLA-3627-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS redis 5:6.0.16-1ubuntu1+esm1 USN-6531-1
Ubuntu Pro 20.04 LTS redis 5:5.0.7-2ubuntu0.1+esm2 USN-6531-1
Ubuntu Pro 18.04 LTS redis 5:4.0.9-1ubuntu0.2+esm4 USN-6531-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS redis 2:3.0.6-1ubuntu0.4+esm2 USN-6531-1
Ubuntu Pro 14.04 LTS redis 2:2.8.4-2ubuntu0.2+esm3 USN-6531-1
ReleasePackageFixed inAdvisory
RHEL 9 redis +2 6.2.17-1.el9_5 RHSA-2025:0693, RHSA-2024:10869
RHEL 8 redis +2 6.2.17-1.module+el8.10.0+22680+748527fd RHSA-2025:0595

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 redis +2 6.2.17-1.el9_5 ALSA-2025:0693, ALSA-2024:10869
AlmaLinux 8 redis +2 6.2.17-1.module_el8.10.0+3946+3de613d5 ALSA-2025:0595

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 redis 6.2.17-1.el9_5 RLSA-2025:0693
Rocky Linux 8 redis 6.2.17-1.module+el8.10.0+1923+5b85c6a7 RLSA-2025:0595
ReleasePackageFixed inAdvisory
SLES 15 SP5 redis 6.2.6-150400.3.25.1 SUSE-SU-2023:4290-1
SLES 15 SP5 redis7 7.0.8-150500.3.9.1 SUSE-SU-2024:0200-1
SLES 15 SP4 redis 6.2.6-150400.3.25.1 SUSE-SU-2023:4290-1
SLES 15 SP3 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SLES 15 SP2 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SLES for SAP 15 SP2 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SLE HPC 15 SP3 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SLE HPC 15 SP2 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SUSE Manager Server 4.2 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SUSE Manager Proxy 4.2 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
SUSE Enterprise Storage 7.1 redis 6.0.14-150200.6.29.1 SUSE-SU-2023:4376-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 7.2.2-1.1 openSUSE-SU-2024:13354-1
openSUSE Leap 15.5 redis 6.2.6-150400.3.25.1 SUSE-SU-2023:4290-1
openSUSE Leap 15.5 redis7 7.0.8-150500.3.9.1 SUSE-SU-2024:0200-1
openSUSE Leap 15.4 redis 6.2.6-150400.3.25.1 SUSE-SU-2023:4290-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redis 7.2.2-r0 —
Alpine v3.23 redis 7.2.2-r0 —
Alpine v3.22 redis 7.2.2-r0 —
Alpine v3.21 redis 7.2.2-r0 —
Alpine v3.20 redis 7.2.2-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 7.2.2-r0 —
Alpine v3.18 redis 7.0.14-r0 —
Alpine v3.17 redis 7.0.14-r0 —
Alpine v3.16 redis 7.0.14-r0 —
Alpine v3.15 redis 6.2.14-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 redis6 +2 6.2.14-1.amzn2023.0.1 ALAS2023-2024-516, ALAS2023-2024-513

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) redis 6.2.14-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 redis +2 6.2.17-1.el9_5 ELSA-2025-0693, ELSA-2024-10869
Oracle Linux 8 redis +2 6.2.17-1.0.1.module+el8.10.0+90491+f9002f77 ELSA-2025-0595

Advisories 23

References