← Back to CVE Explorer

CVE-2025-46818

Full vulnerability record from the local CVENow database.

Description

Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing LUA scripts. This can be done using ACL to block a script by restricting both the EVAL and FUNCTION command families.

Severity
HIGH
CVSS score
7.3 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2025-10-03 19:15:43.330000
Last modified
2026-10-19 17:10:00.173000
View original CVE JSON
{
  "id": "CVE-2025-46818",
  "sourceIdentifier": "[email protected]",
  "published": "2025-10-03T19:15:43.330",
  "lastModified": "2026-10-19T17:10:00.173",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing LUA scripts. This can be done using ACL to block a script by restricting both the EVAL and FUNCTION command families."
    },
    {
      "lang": "es",
      "value": "Redis es una base de datos de código abierto, en memoria, que persiste en disco. Las versiones 8.2.1 e inferiores permiten a un usuario autenticado usar un script Lua especialmente diseñado para manipular diferentes objetos LUA y potencialmente ejecutar su propio código en el contexto de otro usuario. El problema existe en todas las versiones de Redis con scripting LUA. Este problema está solucionado en la versión 8.2.2. Una solución alternativa para mitigar el problema sin parchear el ejecutable redis-server es evitar que los usuarios ejecuten scripts LUA. Esto se puede hacer usando ACL para bloquear un script restringiendo tanto las familias de comandos EVAL como FUNCTION."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "redis",
          "product": "redis",
          "versions": [
            {
              "version": "< 8.2.2",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N",
          "baseScore": 6.0,
          "baseSeverity": "MEDIUM",
          "attackVector": "LOCAL",
          "attackComplexity": "HIGH",
          "privilegesRequired": "LOW",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 0.8,
        "impactScore": 5.2
      },
      {
        "source": "[email protected]",
        "type": "Primary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
          "baseScore": 7.3,
          "baseSeverity": "HIGH",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "privilegesRequired": "LOW",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 1.3,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2025-10-03T19:02:57.936547Z",
          "id": "CVE-2025-46818",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-94"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
              "versionEndExcluding": "6.2.20",
              "matchCriteriaId": "C2F4D4F6-6F7C-46BC-B37C-DFAC34B097AC"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "7.0",
              "versionEndExcluding": "7.2.11",
              "matchCriteriaId": "4F82BD2A-473F-4F3F-9C80-C6448D07C45D"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "7.4.0",
              "versionEndExcluding": "7.4.6",
              "matchCriteriaId": "F6E336B8-E000-4EFA-95F8-F2B74A4913F0"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "8.0.0",
              "versionEndExcluding": "8.0.4",
              "matchCriteriaId": "459EBC07-D37A-44E5-95DB-4C3FD9F008FF"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "8.2.0",
              "versionEndExcluding": "8.2.2",
              "matchCriteriaId": "CBF13EC1-FE0A-4242-B8D3-2681485DDDF2"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e",
      "source": "[email protected]",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/redis/redis/releases/tag/8.2.2",
      "source": "[email protected]",
      "tags": [
        "Release Notes"
      ]
    },
    {
      "url": "https://github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp",
      "source": "[email protected]",
      "tags": [
        "Third Party Advisory"
      ]
    }
  ]
}