{"answers":{"affected":"3 open source packages ship an affected version, including redis, keydb and valkey. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49844 exists.","fix":"Upgrade redis to a fixed version for your release line: 6.2.20, 7.2.11, 7.4.6 or 8.0.4.","what":"CVE-2025-49844 is a critical use after free vulnerability in redis, published on 3 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-49844 and fix it if it is affected.\n\nWhat it is: CVE-2025-49844 is a critical use after free vulnerability in redis, published on 3 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49844 exists.\n\nAffected packages and fixed versions:\n- redis (Bitnami): affected all versions; fixed in 6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2\n- keydb (Bitnami): affected all versions; fixed in 6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2\n- valkey (Bitnami): affected all versions; fixed in 7.2.11, 8.0.6, 8.1.4\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-2025-49844/ (Markdown: https://insights.sbomify.com/CVE-2025-49844/index.md)","id":"CVE-2025-49844","markdown":"https://insights.sbomify.com/CVE-2025-49844/index.md","name":"CVE-2025-49844","record":{"aliases":["ALPINE-CVE-2025-49844","AZL-68226","AZL-68352","AZL-68363","AZL-68426","BELL-CVE-2025-49844","BIT-keydb-2025-49844","BIT-redis-2025-49844","BIT-valkey-2025-49844","CLEANSTART-2026-NI16079","CLSA-2025-1760107506","DEBIAN-CVE-2025-49844","GHSA-4789-qfc9-5f9q","MINI-2c4g-q773-r3gr","MINI-cc5x-vpvp-54h8","MINI-hhhw-83g9-vg9m","MINI-m9cp-64qr-rqvg","MINI-x5cq-xq5q-r9c4","OESA-2026-1063","UBUNTU-CVE-2025-49844","USN-7824-1","USN-7824-2","USN-7824-3","USN-8262-1"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Redis in-memory database","requires_auth":"low_privilege","summary":"An authenticated attacker can trigger a use-after-free via crafted Lua scripts in Redis, potentially leading to remote code execution.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"valkey","vendor":"lfprojects"},{"product":"redis","vendor":"redis"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/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. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate the garbage collector, trigger a use-after-free and potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue 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"],"exploits":{"exploitdb":0,"first_seen":"2019-04-13","github_poc":19,"max_poc_stars":345,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-10-07T06:18:28Z","kind":"github_poc","ref":"https://github.com/raminfp/redis_exploit","stars":345,"title":"CVE-2025-49844 (RediShell)"},{"date":"2025-10-07T04:58:12Z","kind":"github_poc","ref":"https://github.com/dwisiswant0/CVE-2025-49844","stars":67,"title":"CVE-2025-49844 – Redis Lua Parser Use-After-Free"},{"date":"2025-10-31T05:59:25Z","kind":"github_poc","ref":"https://github.com/saneki/cve-2025-49844","stars":26,"title":"Proof-of-concept for CVE-2025-49844"},{"date":"2025-10-07T10:12:51Z","kind":"github_poc","ref":"https://github.com/lastvocher/redis-CVE-2025-49844","stars":14,"title":null},{"date":"2025-10-08T13:38:51Z","kind":"github_poc","ref":"https://github.com/pedrorichil/CVE-2025-49844","stars":6,"title":null},{"date":"2022-04-06T09:27:39Z","kind":"github_poc","ref":"https://github.com/Zain3311/CVE-2025-49844","stars":2,"title":"🚨 Exploit the CVE-2025-49844 Redis Lua interpreter UAF vulnerability to execute arbitrary shellcode and gain persistent backdoor access."},{"date":"2025-10-09T13:21:44Z","kind":"github_poc","ref":"https://github.com/MiclelsonCN/CVE-2025-49844_POC","stars":2,"title":"CVE-2025-49844 POC "},{"date":"2019-04-13T07:51:09Z","kind":"github_poc","ref":"https://github.com/ksnnd32/redis_exploit","stars":1,"title":"🔍 Explore and test the CVE-2025-49844 (RediShell) vulnerability in Redis with this practical lab environment for secure education and research."}],"tier":"weaponised"},"has_fix":true,"headline":"Redis Lua Use-After-Free may lead to remote code execution","id":"CVE-2025-49844","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"use_after_free","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"Information disclosure in discourse","id":"CVE-2025-49845"},"packages":[{"ecosystem":"Bitnami","fixed":["6.2.20","7.2.11","7.4.6","8.0.4","8.2.2"],"introduced":["0","7.0.0","7.3.0","8.0.0","8.1.0"],"last_affected":[],"package":"keydb","purl":"pkg:bitnami/keydb","source":"BIT-keydb-2025-49844"},{"ecosystem":"Bitnami","fixed":["6.2.20","7.2.11","7.4.6","8.0.4","8.2.2"],"introduced":["0","7.0.0","7.3.0","8.0.0","8.1.0"],"last_affected":[],"package":"redis","purl":"pkg:bitnami/redis","source":"BIT-redis-2025-49844"},{"ecosystem":"Bitnami","fixed":["7.2.11","8.0.6","8.1.4"],"introduced":["0","8.0.0","8.1.0"],"last_affected":[],"package":"valkey","purl":"pkg:bitnami/valkey","source":"BIT-valkey-2025-49844"}],"prev":{"headline":"conda-smithy Has Incorrect Default File Permissions","id":"CVE-2025-49843"},"products":["redis"],"published":"2025-10-03","related":[{"cvss_score":8.5,"headline":"Valkey Affected by RESP Protocol Injection via Lua error_reply","id":"CVE-2025-67733","kev_date_added":null,"published":"2026-02-23"},{"cvss_score":7.5,"headline":"Malformed Valkey Cluster bus message can lead to Remote DoS","id":"CVE-2026-21863","kev_date_added":null,"published":"2026-02-23"},{"cvss_score":7.5,"headline":"Valkey has Pre-Authentication DOS from malformed RESP request","id":"CVE-2026-27623","kev_date_added":null,"published":"2026-02-23"}],"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":"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":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-20","vendors":["redis"]},"summary":"An authenticated attacker can trigger a use-after-free via crafted Lua scripts in Redis, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2025-49844/"}