Skip to main content
Public proof of conceptFix available

CVE-2024-46981

A public proof of concept exists; no exploitation attested.

  • Published2025-01-06
  • Fixed in7.4.2 · 7.2.8 · 7.2.7 · 6.2.17
  • WeaknessCWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional 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 restrict EVAL and EVALSHA commands.

Timeline

dates in UTC
  1. 2025-01-0622:15CVE publishedNVD

Versions per branch

NVD · OSV
Redis
BranchAffectedFixed in
7.4≥ 7.4.0, < 7.4.27.4.2
7.2≥ 7.2.0, < 7.2.87.2.8
7.2≥ 7.2.0, < 7.2.77.2.7
6.2≥ 6.2.0, < 6.2.176.2.17
6.2< 6.2.176.2.17
keydb
BranchAffectedFixed in
6.3< 6.3.46.3.4
7.2+≥ 7.2.0no fix published
Debian debian linux
BranchAffectedFixed in
11.0= 11.0no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • redis
    Affected
    • = >= 7.4.0, < 7.4.2no fix stated
    • = >= 7.2.0, < 7.2.7no fix stated
    • = < 6.2.17no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-01-06

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • py3-redisChainguardall versions · fixed in 0and 4 other packages
  • redictUbuntu:26.10all versions · no fixed version listed
  • redictUbuntu:26.04:LTSall versions · no fixed version listed
  • redictUbuntu:25.10all versions · no fixed version listed
  • redictDebian:14all versions · fixed in 7.3.2+ds-1
  • redictAlpine:v3.24all versions · fixed in 7.3.2-r0
  • redictAlpine:v3.23all versions · fixed in 7.3.2-r0
  • redictAlpine:v3.22all versions · fixed in 7.3.2-r0

88 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-46981 Red Hat Product Security272 products fixed · 4 known affected

    redis: Redis' Lua library commands may lead to remote code execution

    openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9.src as a component of OpenShift Lightspeed · rhelai1/bootc-amd-rhel9.src as a component of Red Hat Enterprise Linux AI (RHEL AI) · rhelai1/bootc-azure-amd-rhel9.src as a component of Red Hat Enterprise Linux AI (RHEL AI) · +1 more

  • RHBA-2025:1600 Red Hat Product Security30 products fixed

    Red Hat Bug Fix Advisory: Red Hat Quay v3.10.9 bug fix release

  • RHBA-2025:1079 Red Hat Product Security30 products fixed

    Red Hat Bug Fix Advisory: Red Hat Quay v3.13.4 bug fix release

  • RHSA-2025:1249 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: updated discovery container images

  • RHSA-2025:0689 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: redis:6 security update

  • RHSA-2025:0692 Red Hat Product Security18 products fixed

    Red Hat Security Advisory: redis:7 security update

8 more advisories

Full record on NVD

Fix

  1. Update Redis to 7.4.2 · 7.2.8 · 7.2.7 · 6.2.17
  2. Vendor fix Red Hat Product Security RHBA-2025:1600 · 30 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2025:1249 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2025:0689 · 30 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Workaround from the vendor Red Hat Product Security RHBA-2025:1600 · 30 productsA 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 restrict EVAL and EVALSHA commands.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2025-01-06
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-39h2-x6c4-6w4c

Frequently asked questions

What is CVE-2024-46981?

Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional 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 restrict EVAL and EVALSHA commands.

Is CVE-2024-46981 actively exploited?

Active exploitation of CVE-2024-46981 has not been confirmed. Its EPSS score was 8.2% on 2026-11-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-46981?

CVE-2024-46981 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Redis? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record