{"answers":{"affected":"3 open source packages ship an affected version, including redis, keydb and valkey. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-23631 in the wild and no public exploit code.","fix":"Upgrade redis to a fixed version for your release line: 7.2.14, 7.4.9, 8.2.6 or 8.4.3.","what":"CVE-2026-23631 is a medium-severity use after free vulnerability in redis, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-23631 and fix it if it is affected.\n\nWhat it is: CVE-2026-23631 is a medium-severity use after free vulnerability in redis, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-23631 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- redis (Bitnami): affected from 7.2.0; fixed in 7.2.14, 7.4.9, 8.2.6, 8.4.3, 8.6.3\n- keydb (Bitnami): affected from 7.2.0; fixed in 7.2.14, 7.4.9, 8.2.6, 8.4.3, 8.6.3\n- valkey (Bitnami): affected all versions; fixed in 7.2.13, 8.0.8, 8.1.7, 9.0.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-2026-23631/ (Markdown: https://insights.sbomify.com/CVE-2026-23631/index.md)","id":"CVE-2026-23631","markdown":"https://insights.sbomify.com/CVE-2026-23631/index.md","name":"CVE-2026-23631","record":{"aliases":["ALPINE-CVE-2026-23631","AZL-86084","BELL-CVE-2026-23631","BIT-keydb-2026-23631","BIT-redis-2026-23631","BIT-valkey-2026-23631","CLSA-2026-1779351595","DEBIAN-CVE-2026-23631","GHSA-8ghh-qpmp-7826","MINI-8462-q4p6-qfgh","MINI-cph2-8q3f-9mx2","MINI-gqw7-jxpf-9wj4","MINI-pxp7-5g4q-833r","MINI-w92g-9hw8-cfgv","MINI-wwcf-rch4-jqqj","RHSA-2026:33444","UBUNTU-CVE-2026-23631"],"analysis":{"component_type":"database","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Redis in-memory store","requires_auth":"low_privilege","summary":"An authenticated attacker can trigger a use-after-free in Redis replicas with read-only disabled, 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":"redis","vendor":"redis"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"Redis is an in-memory data structure store. In all versions of redis-server with Lua scripting, an authenticated attacker can exploit the master-replica synchronization mechanism to trigger a use-after-free on replicas where replica-read-only is disabled or can be disabled, which may lead to remote code execution. A workaround is to prevent users from executing Lua scripts or avoid using replicas where replica-read-only is disabled. This is patched in version 8.6.3.","ecosystems":["Bitnami","Red Hat:rhel_e4s:9.4::appstream"],"exploits":{"exploitdb":0,"first_seen":"2026-05-07","github_poc":2,"max_poc_stars":33,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-07T12:36:35Z","kind":"github_poc","ref":"https://github.com/yoyosh/DarkReplica","stars":33,"title":"CVE-2026-23631 (DarkReplica) Redis Exploit"},{"date":"2026-06-04T01:22:29Z","kind":"github_poc","ref":"https://github.com/HORKimhab/CVE-2026-23631","stars":0,"title":"CVE-2026-23631-Draft"}],"tier":"poc_unverified"},"has_fix":true,"headline":"redis-server Lua use-after-free may allow remote code execution","id":"CVE-2026-23631","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":8,"n_references":2,"next":{"headline":"Gogs user can update repository content with read-only permission","id":"CVE-2026-23632"},"packages":[{"ecosystem":"Bitnami","fixed":["7.2.14","7.4.9","8.2.6","8.4.3","8.6.3"],"introduced":["7.2.0","7.3.0","8.0.0","8.3.0","8.5.0"],"last_affected":[],"package":"keydb","purl":"pkg:bitnami/keydb","source":"BIT-keydb-2026-23631"},{"ecosystem":"Bitnami","fixed":["7.2.14","7.4.9","8.2.6","8.4.3","8.6.3"],"introduced":["7.2.0","7.3.0","8.0.0","8.3.0","8.5.0"],"last_affected":[],"package":"redis","purl":"pkg:bitnami/redis","source":"BIT-redis-2026-23631"},{"ecosystem":"Bitnami","fixed":["7.2.13","8.0.8","8.1.7","9.0.4"],"introduced":["0","8.0.0","8.1.0","9.0.0"],"last_affected":[],"package":"valkey","purl":"pkg:bitnami/valkey","source":"BIT-valkey-2026-23631"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:7.0.12-2.module+el9.4.0+24450+e284b512.8"],"introduced":["0"],"last_affected":[],"package":"redis","purl":"pkg:rpm/redhat/redis","source":"RHSA-2026:33444"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:7.0.12-2.module+el9.4.0+24450+e284b512.8"],"introduced":["0"],"last_affected":[],"package":"redis-debuginfo","purl":"pkg:rpm/redhat/redis-debuginfo","source":"RHSA-2026:33444"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:7.0.12-2.module+el9.4.0+24450+e284b512.8"],"introduced":["0"],"last_affected":[],"package":"redis-debugsource","purl":"pkg:rpm/redhat/redis-debugsource","source":"RHSA-2026:33444"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:7.0.12-2.module+el9.4.0+24450+e284b512.8"],"introduced":["0"],"last_affected":[],"package":"redis-devel","purl":"pkg:rpm/redhat/redis-devel","source":"RHSA-2026:33444"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:7.0.12-2.module+el9.4.0+24450+e284b512.8"],"introduced":["0"],"last_affected":[],"package":"redis-doc","purl":"pkg:rpm/redhat/redis-doc","source":"RHSA-2026:33444"}],"prev":{"headline":"Docmost is vulnerable to stored Cross-Site Scripting (XSS) through Mermaid rendering","id":"CVE-2026-23630"},"products":["redis"],"published":"2026-05-05","related":[{"cvss_score":10,"headline":"Debian-specific Redis Server Lua Sandbox Escape","id":"CVE-2022-0543","kev_date_added":"2022-03-28","published":"2022-02-18"},{"cvss_score":7.7,"headline":"redis-server use-after-free in unblock client flow may allow remote code execution","id":"CVE-2026-23479","kev_date_added":null,"published":"2026-05-05"},{"cvss_score":7.7,"headline":"redis-server RESTORE invalid memory access may allow remote code execution","id":"CVE-2026-25243","kev_date_added":null,"published":"2026-05-05"},{"cvss_score":7.7,"headline":"Redis: Bug in XACKDEL may lead to stack overflow and potential RCE","id":"CVE-2025-62507","kev_date_added":null,"published":"2025-11-04"},{"cvss_score":7.5,"headline":"Redis DoS Vulnerability due to bad connection error handling","id":"CVE-2025-48367","kev_date_added":null,"published":"2025-07-07"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2023-31655","kev_date_added":null,"published":"2023-05-18"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2022-33105","kev_date_added":null,"published":"2022-06-22"}],"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":"2026-07-16","vendors":["redis"]},"summary":"An authenticated attacker can trigger a use-after-free in Redis replicas with read-only disabled, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2026-23631/"}