{"answers":{"affected":"3 open source packages ship an affected version, including keydb, redis and valkey. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-46981 in the wild and no public exploit code.","fix":"Upgrade keydb to 6.3.4 or later.","what":"CVE-2024-46981 is a high-severity use after free vulnerability in Debian Debian Linux, published on 6 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-46981 and fix it if it is affected.\n\nWhat it is: CVE-2024-46981 is a high-severity use after free vulnerability in Debian Debian Linux, published on 6 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-46981 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- keydb (Bitnami): affected all versions; fixed in 6.3.4\n- redis (Bitnami): affected all versions; fixed in 6.2.17, 7.2.8, 7.4.2\n- valkey (Bitnami): affected all versions; fixed in 8.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-46981/ (Markdown: https://insights.sbomify.com/CVE-2024-46981/index.md)","id":"CVE-2024-46981","markdown":"https://insights.sbomify.com/CVE-2024-46981/index.md","name":"CVE-2024-46981","record":{"aliases":["ALPINE-CVE-2024-46981","AZL-54969","AZL-55286","BELL-CVE-2024-46981","BIT-keydb-2024-46981","BIT-redis-2024-46981","BIT-valkey-2024-46981","DEBIAN-CVE-2024-46981","DLA-4025-1","GHSA-39h2-x6c4-6w4c","MINI-4mvp-8jq4-2v6p","MINI-8xqh-6fcr-8vjh","MINI-9c7x-fxvh-q64v","RHSA-2025:0398","RHSA-2025:0399","RHSA-2025:0400","RHSA-2025:0566","RHSA-2025:0640","RHSA-2025:0685","RHSA-2025:0689","SUSE-SU-2025:0162-1","UBUNTU-CVE-2024-46981"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Redis in-memory database","requires_auth":"low_privilege","summary":"An authenticated user can execute remote code by exploiting a use-after-free vulnerability in Redis Lua script handling.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"redis","vendor":"redis"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"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.","ecosystems":["Bitnami","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3"],"exploits":{"exploitdb":0,"first_seen":"2025-03-19","github_poc":2,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-03-19T06:26:31Z","kind":"github_poc","ref":"https://github.com/publicqi/CVE-2024-46981","stars":5,"title":null},{"date":"2025-03-21T04:36:22Z","kind":"github_poc","ref":"https://github.com/xsshk/CVE-2024-46981","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Redis' Lua library commands may lead to remote code execution","id":"CVE-2024-46981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"use_after_free","year":"2024"},"n_packages":68,"n_references":4,"next":{"headline":"Cache Poisoning in next.js","id":"CVE-2024-46982"},"packages":[{"ecosystem":"Bitnami","fixed":["6.3.4"],"introduced":["0","7.2.0"],"last_affected":[],"package":"keydb","purl":"pkg:bitnami/keydb","source":"BIT-keydb-2024-46981"},{"ecosystem":"Bitnami","fixed":["6.2.17","7.2.8","7.4.2"],"introduced":["0","7.2.0","7.4.0"],"last_affected":[],"package":"redis","purl":"pkg:bitnami/redis","source":"BIT-redis-2024-46981"},{"ecosystem":"Bitnami","fixed":["8.0.2"],"introduced":["0"],"last_affected":[],"package":"valkey","purl":"pkg:bitnami/valkey","source":"BIT-valkey-2024-46981"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0685"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0689"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:6.2.6-1.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0400"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:6.2.6-1.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0400"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:6.2.6-1.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0400"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:6.2.6-1.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0400"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:6.2.6-1.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0400"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:6.2.7-1.module+el8.8.0+22725+e1c935f8.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0640"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:6.2.7-1.module+el8.8.0+22725+e1c935f8.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0640"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:6.2.7-1.module+el8.8.0+22725+e1c935f8.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0640"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:6.2.7-1.module+el8.8.0+22725+e1c935f8.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0640"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:6.2.7-1.module+el8.8.0+22725+e1c935f8.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0640"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:6.2.7-1.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0398"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:6.2.7-1.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2025:0398"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:6.2.7-1.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2025:0398"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:6.2.7-1.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2025:0398"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:6.2.7-1.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2025:0398"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:6.2.7-1.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0399"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:7.0.12-1.module+el9.4.0+22724+5f7cf862.2"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2025:0566"}],"prev":{"headline":"Tuleap vulnerable to XSS in the HTML mail content of the cross reference field","id":"CVE-2024-46980"},"products":["redis"],"published":"2025-01-06","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-19","vendors":["redis"]},"summary":"An authenticated user can execute remote code by exploiting a use-after-free vulnerability in Redis Lua script handling.","url":"https://insights.sbomify.com/CVE-2024-46981/"}