CVE-2024-51737

RediSearch Integer Overflow with LIMIT or KNN arguments can lead to RCE

State
Published
Severity
7.0 High
Published
Jan 8, 2025
Updated
Jan 8, 2025
Reserved
Oct 31, 2024

Read the record on cve.org

Description

RediSearch is a Redis module that provides querying, secondary indexing, and full-text search for Redis. An authenticated redis user executing FT.SEARCH or FT.AGGREGATE with a specially crafted LIMIT command argument, or FT.SEARCH with a specially crafted KNN command argument, can trigger an integer overflow, leading to heap overflow and potential remote code execution. This vulnerability is fixed in 2.6.24, 2.8.21, and 2.10.10. Avoid setting value of -1 or large values for configuration parameters MAXSEARCHRESULTS and MAXAGGREGATERESULTS, to avoid exploiting large LIMIT arguments.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-122 Heap-based Buffer Overflow
  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
RediSearchRediSearch
  • >= 2.0.0, < 2.6.24Affected
  • >= 2.8.0, < 2.8.21Affected
  • >= 2.10.0, < 2.10.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.