CVE-2024-51737: RediSearch Integer Overflow with LIMIT or KNN arguments can lead to RCE
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.6.24 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.8.21 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.10.10 - Configuration
Avoid setting MAXSEARCHRESULTS or MAXAGGREGATERESULTS to -1 or large values.
RediSearch MAXSEARCHRESULTS and MAXAGGREGATERESULTS = not -1 or large values
Event History
Frequently Asked Questions
What is the severity of CVE-2024-51737?
CVE-2024-51737 is classified as a medium severity vulnerability.
How do I fix CVE-2024-51737?
To remediate CVE-2024-51737, upgrade RediSearch to version 2.6.24 or higher, 2.8.21 or higher, or 2.10.10 or higher.
What are the affected versions for CVE-2024-51737?
The affected versions for CVE-2024-51737 include RediSearch versions prior to 2.6.24, 2.8.21, and 2.10.10.
What type of attack is associated with CVE-2024-51737?
CVE-2024-51737 is associated with attacks that exploit specially crafted LIMIT or KNN command arguments in FT.SEARCH or FT.AGGREGATE.
Who is affected by CVE-2024-51737?
Authenticated Redis users executing specific commands with specially crafted arguments may be affected by CVE-2024-51737.