cve.bz

CVE-2025-46818 redis redis: Code Injection

7.3 highEPSS 0.9%Fix available

High (7.3) in redis redis. EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

7.3 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
0.9% (up from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-46818 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-46818?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-46818?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-46818 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisbefore 6.2.20
redis:redisfrom 7.0 before 7.2.11
redis:redisfrom 7.4.0 before 7.4.6
redis:redisfrom 8.0.0 before 8.0.4
redis:redisfrom 8.2.0 before 8.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12redis5:7.0.15-1~deb12u6DEBIAN-CVE-2025-46818 DSA-6020-1
Debian13redis5:8.0.2-3+deb13u1DEBIAN-CVE-2025-46818 DSA-6020-1
Debian13valkey8.1.1+dfsg1-3+deb13u1DEBIAN-CVE-2025-46818 DSA-6022-1
Debian14redict7.3.6+ds-1DEBIAN-CVE-2025-46818
Debian14redis5:8.0.4-1DEBIAN-CVE-2025-46818
Debian14valkey8.1.4+dfsg1-1DEBIAN-CVE-2025-46818
Ubuntu24.04:LTSvalkey7.2.11+dfsg1-0ubuntu0.2UBUNTU-CVE-2025-46818 USN-7893-1
Ubuntu24.04:LTS, 26.04:LTS, Pro:14.04:LTS and 4 moreredisno fix listedUBUNTU-CVE-2025-46818
Ubuntu25.10valkey8.1.4+dfsg1-0ubuntu0.2UBUNTU-CVE-2025-46818 USN-7893-1
Ubuntu25.10, 26.10redis, redictno fix listedUBUNTU-CVE-2025-46818
Red Hatenterprise_linux:8::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.20-1.module+el8.10.0+23551+d4cd15d7RHSA-2025:19238
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.20-1.el9_6RHSA-2025:19237
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.20-2.el9_7RHSA-2025:20926
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.11-1.module+el9.6.0+23552+a3d3d132RHSA-2025:19345
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.11-1.module+el9.7.0+23559+d075163aRHSA-2025:20955
Red Hatenterprise_linux:9::appstreamvalkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.6-2.el9_7RHSA-2025:21916
Red Hatenterprise_linux:10.0valkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.6-1.el10_0RHSA-2025:19675
Red Hatenterprise_linux:10.1valkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.6-2.el10_1RHSA-2025:21936
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 moreredis6.0.14-150200.6.43.1SUSE-SU-2025:03507-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 moreredis6.2.6-150400.3.40.1SUSE-SU-2025:03506-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreredis77.0.8-150500.3.24.1SUSE-SU-2025:03501-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis7.2.4-150600.3.18.1SUSE-SU-2025:03505-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis77.0.8-150600.8.19.1SUSE-SU-2025:03500-1
SUSELinux Enterprise Module for Server Applications 15 SP6valkey8.0.6-150600.13.17.1SUSE-SU-2025:03499-1
SUSELinux Enterprise Module for Server Applications 15 SP7valkey8.0.6-150700.3.11.1SUSE-SU-2025:03502-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0valkey8.0.6-160000.1.1SUSE-SU-2026:20022-1
openSUSELeap 15.6redis7.2.4-150600.3.18.1SUSE-SU-2025:03505-1
openSUSELeap 15.6redis77.0.8-150600.8.19.1SUSE-SU-2025:03500-1
openSUSELeap 15.6valkey8.0.6-150600.13.17.1SUSE-SU-2025:03499-1
openSUSELeap 16.0redis8.2.3-bp160.1.1openSUSE-SU-2025:20121-1
openSUSELeap 16.0valkey8.0.6-160000.1.1openSUSE-SU-2026:20003-1
openSUSETumbleweedredis8.2.2-1.1openSUSE-SU-2025:15600-1
openSUSETumbleweedvalkey8.1.4-1.1openSUSE-SU-2025:15604-1
AlmaLinux8redis, redis-doc, redis-devel6.2.20-1.module_el8.10.0+4056+739731b0ALSA-2025:19238
AlmaLinux9redis, redis-doc, redis-devel6.2.20-1.el9_6ALSA-2025:19237
AlmaLinux9redis, redis-doc, redis-devel6.2.20-2.el9_7ALSA-2025:20926
AlmaLinux9redis, redis-doc, redis-devel7.2.11-1.module_el9.6.0+188+92104ce8ALSA-2025:19345 ALSA-2025:20955
AlmaLinux9valkey, valkey-devel8.0.6-2.el9_7ALSA-2025:21916
AlmaLinux10valkey, valkey-devel8.0.6-1.el10_0ALSA-2025:19675
AlmaLinux10valkey, valkey-devel8.0.6-2.el10_1ALSA-2025:21936
Rocky Linux8redis0:6.2.20-1.module+el8.10.0+2081+450a296cRLSA-2025:19238
Rocky Linux9redis0:6.2.20-1.el9_6RLSA-2025:19237
Rocky Linux9redis0:6.2.20-2.el9_7RLSA-2025:20926
Rocky Linux9redis0:7.2.11-1.module+el9.7.0+40013+17379f63RLSA-2025:19345 RLSA-2025:20955
Rocky Linux9valkey0:8.0.6-2.el9_7RLSA-2025:21916
Rocky Linux10valkey0:8.0.6-1.el10_0RLSA-2025:19675
Rocky Linux10valkey0:8.0.6-2.el10_1RLSA-2025:21936
Alpinev3.20valkey7.2.11-r0ALPINE-CVE-2025-46818
Alpinev3.21redis, valkey7.2.11-r0ALPINE-CVE-2025-46818
Alpinev3.22redis8.0.4-r0ALPINE-CVE-2025-46818
Alpinev3.22, v3.23, v3.24redict7.3.6-r0ALPINE-CVE-2025-46818
Alpinev3.22, v3.23, v3.24valkey8.1.4-r0ALPINE-CVE-2025-46818
Alpinev3.23, v3.24redis8.2.2-r0ALPINE-CVE-2025-46818
Azure Linux2redis6.2.20-1AZL-68285
Azure Linux3valkey8.0.6-1AZL-68241
Alpaquita23redis7.0.15-r6BELL-CVE-2025-46818
Alpaquita25redis8.0.4-r0BELL-CVE-2025-46818
Alpaquitastreamredis8.2.2-r0BELL-CVE-2025-46818

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This rated Moderate as the vulnerability requires authenticated access with scripting rights, high-complexity steps to trigger a specific Lua code path, and typically another user action for cross-context execution. The impact is confined to the Redis process and data, with no availability effect, and can be mitigated via standard ACLs restricting EVAL/FUNCTION or by updating to the fixed release. Unlike “Important” flaws, it is not remotely exploitable without interaction or across trust boundaries.

This flaw exists only in the Redis server implementation;

Redis client libraries (Python, Node.js, Rust, etc.) are not affected by this vulnerability, and it only exists in the Redis server’s embedded Lua engine where scripts execute. Client libraries merely transmit EVAL/EVALSHA to the server.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

To reduce the risk, restricting network access to trusted hosts, enforcing strong authentication and protected-mode, disabling or limiting Lua scripting where possible can be be benificial and apply least-privilege ACLs to reduce who can run scripting commands, keep instances non-public with firewalls/VPCs, and follow Redis hardening guidance to minimize exposure.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10valkey-0:8.0.6-1.el10_0Fixed 2025-11-04RHSA-2025:19675
Red Hat Enterprise Linux 10valkey-0:8.0.6-2.el10_1Fixed 2025-11-24RHSA-2025:21936
Red Hat Enterprise Linux 8redis:6-8100020251007064521.489197e6Fixed 2025-10-29RHSA-2025:19238
Red Hat Enterprise Linux 9redis-0:6.2.20-1.el9_6Fixed 2025-10-29RHSA-2025:19237
Red Hat Enterprise Linux 9redis:7-9060020251007094800.9Fixed 2025-10-30RHSA-2025:19345
Red Hat Enterprise Linux 9redis-0:6.2.20-2.el9_7Fixed 2025-11-11RHSA-2025:20926
Red Hat Enterprise Linux 9redis:7-9070020251016095039.9Fixed 2025-11-11RHSA-2025:20955
Red Hat Enterprise Linux 9valkey-0:8.0.6-2.el9_7Fixed 2025-11-24RHSA-2025:21916
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-operator-bundleNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/log-file-metric-exporter-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Not affected
Red Hat AI Inference Serverrhaiis-preview/vllm-cuda-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Not affected
135 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-46818.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-083-03"Schneider Electric Plant iT/Brewmaxx"2026-01-13Energy, Critical Manufacturing, Commercial FacilitiesProLeiT Plant iT/Brewmaxx Version 9.60 and abovePatch ProLeiT-2025-001 installed on ProLeiT Plant iT/Brewmaxx

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON