Skip to content
Heist/ feed
Back to feed
LowFix available

redis — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2023-45145

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.

Products
redis
Affected versions
Not specified
Fixed versions
6.2.14-r0, 7.0.14-r0, 7.2.2-r0
CVEs
CVE-2023-45145
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:01 UTC · Revision 1

Source evidence

ALPINE-CVE-2023-45145

core-osv · Original source

Published 18 Oct 2023, 21:15 UTC

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.

osv:ALPINE-CVE-2023-45145

redis

Fixed versions: 6.2.14-r0

redis

Fixed versions: 7.0.14-r0

redis

Fixed versions: 7.0.14-r0

redis

Fixed versions: 7.0.14-r0

redis

Fixed versions: 7.2.2-r0

Complete source record
{
  "id": "1a81aa3c3c53719819143354c7d46bc5bd25172f65e3ce191fe58250df52f1f9",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2023-45145",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2023-45145",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2023-45145",
    "products": [
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.14-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.0.14-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.0.14-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.0.14-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.2.2-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "low",
    "structured": {
      "id": "ALPINE-CVE-2023-45145",
      "aliases": [
        "ALPINE-CVE-2023-45145"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.0"
                },
                {
                  "fixed": "6.2.14-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-45145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.0"
                },
                {
                  "fixed": "7.0.14-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-45145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.0"
                },
                {
                  "fixed": "7.0.14-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-45145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.0"
                },
                {
                  "fixed": "7.0.14-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-45145.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.0"
                },
                {
                  "fixed": "7.2.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-45145.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-26T17:17:58.645581728Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-45145"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2023-45145"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-45145",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 454515,
  "published_at": "2023-10-18T21:15:09.56+00:00"
}