CVE-2024-51737
JSON

7.0high

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

Severity
7.0high CVSS:3.1 by GitHub_M
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
RediSearch RediSearch>= 2.0.0, < 2.6.24, >= 2.8.0, < 2.8.21, >= 2.10.0, < 2.10.10CVE List

Classification

CWE-122CWE-190

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

RediSearch es un módulo de Redis que proporciona consultas, indexación secundaria y búsqueda de texto completo para Redis. Un usuario de Redis autenticado que ejecuta FT.SEARCH o FT.AGGREGATE con un argumento de comando LIMIT especialmente manipulado, o FT.SEARCH con un argumento de comando KNN especialmente manipulado, puede provocar un desbordamiento de enteros, lo que lleva a un desbordamiento de montón y una posible ejecución remota de código. Esta vulnerabilidad se solucionó en 2.6.24, 2.8.21 y 2.10.10. Evite establecer un valor de -1 o valores grandes para los parámetros de configuración MAXSEARCHRESULTS y MAXAGGREGATERESULTS, para evitar explotar argumentos LIMIT grandes.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-51737 changed 2025-01-08CVE Terms of Use
NVDCVE-2024-51737 changed 2026-06-17Public domain