CVE-2024-51737: RediSearch Integer Overflow with LIMIT or KNN arguments can lead to RCE

Published Jan 8, 2025
·
Updated

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

7 affected components
Redis RediSearch<2.6.24, <2.8.21, <2.10.10
ubuntu/redisearch*
ubuntu/redisearch*
ubuntu/redisearch*
ubuntu/redisearch*
ubuntu/redisearch*
ubuntu/redisearch*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.6.24
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.8.21
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.10.10
  4. Configuration

    Avoid setting MAXSEARCHRESULTS or MAXAGGREGATERESULTS to -1 or large values.

    RediSearch MAXSEARCHRESULTS and MAXAGGREGATERESULTS = not -1 or large values

Event History

Jan 8, 2025
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-51737?

CVE-2024-51737 is classified as a medium severity vulnerability.

2

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.

3

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.

4

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.

5

Who is affected by CVE-2024-51737?

Authenticated Redis users executing specific commands with specially crafted arguments may be affected by CVE-2024-51737.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203