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

Low 3.6 Published Updated

A race condition during Redis startup may expose Unix sockets with incorrect permissions, allowing unauthorized connections if a permissive umask is used.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-45145?

CVE-2023-45145 is a low-severity vulnerability in Debian Debian Linux, published on 18 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-668

Which versions are affected by CVE-2023-45145?

3 open source packages ship an affected version, including keydb, redis and valkey. It affects 3 products.

PackageAffectedFixed in
keydb BitnamiFrom 2.6.06.2.14, 7.0.14, 7.2.2
redis BitnamiFrom 2.6.06.2.14, 7.0.14, 7.2.2
valkey BitnamiFrom 2.6.06.2.14, 7.0.14, 7.2.2
Linux distribution packages (16)
redis SUSE:Enterprise Storage 7.1All versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise Module for Server Applications 15 SP4All versions6.2.6-150400.3.25.1
redis SUSE:Linux Enterprise Module for Server Applications 15 SP5All versions6.2.6-150400.3.25.1
redis7 SUSE:Linux Enterprise Module for Server Applications 15 SP5All versions7.0.8-150500.3.9.1
redis SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions6.0.14-150200.6.29.1
redis SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions6.0.14-150200.6.29.1
redis SUSE:Manager Proxy 4.2All versions6.0.14-150200.6.29.1
redis SUSE:Manager Server 4.2All versions6.0.14-150200.6.29.1
redis openSUSE:Leap 15.4All versions6.2.6-150400.3.25.1
redis openSUSE:Leap 15.5All versions6.2.6-150400.3.25.1
redis7 openSUSE:Leap 15.5All versions7.0.8-150500.3.9.1

Products include Debian Debian Linux, Fedoraproject Fedora, Redis Redis.

How do I fix CVE-2023-45145?

Upgrade keydb to a fixed version for your release line: 6.2.14, 7.0.14 or 7.2.2.

Is CVE-2023-45145 being exploited?

There is no known exploitation of CVE-2023-45145 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2023-45145, AZL-31653, BELL-CVE-2023-45145, BIT-keydb-2023-45145, BIT-redis-2023-45145, BIT-valkey-2023-45145 and 9 more.

Is CVE-2023-45145 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free