# CVE-2021-29477: Vulnerability in the STRALGO LCS command

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.00%, higher than 90% of CVEs (2026-12-01)
- Published: 2021-05-04T15:15:17.000Z
- Modified: 2026-06-17T03:47:43.337Z
- Weaknesses: CWE-190
- Assigned by: GitHub_M

## Description

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. An integer overflow bug in Redis version 6.0 or newer could be exploited using the `STRALGO LCS` command to corrupt the heap and potentially result with remote code execution. The problem is fixed in version 6.2.3 and 6.0.13. An additional workaround to mitigate the problem without patching the redis-server executable is to use ACL configuration to prevent clients from using the `STRALGO LCS` command.

(As written by CVE List.)

## Affected

- redis redis: >= 6.2.0, < 6.2.3; >= 6.0.0, < 6.0.13
- redislabs redis: from 6.0.0 before 6.0.13; from 6.2.0 before 6.2.3
- fedoraproject fedora: 33; 34

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/redis/redis/security/advisories/GHSA-vqxj-26vj-996g> (third-party-advisory)
- <https://redis.io/> (product)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZJ6JGQ2ETZB2DWTQSGCOGG7EF3ILV4V/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BPWBIZXA67JFIB63W2CNVVILCGIC2ME5/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BHWOF7CBVUGDK3AN6H3BN3VNTH2TDUZZ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN7INTZFE34MIQJO7WDDTIY5LIBGN6GI/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202107-20> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-29477](https://www.cve.org/CVERecord?id=CVE-2021-29477), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29477](https://nvd.nist.gov/vuln/detail/CVE-2021-29477), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29477 · Whole record: https://cve.day/CVE-2021-29477.json · Rebuilt by cve.day 2026-11-25T22:58:01.136Z
