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

High 7.0 Published Updated

An authenticated user can trigger an integer overflow in RediSearch via crafted LIMIT or KNN arguments, leading to heap overflow and remote code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-51737?

CVE-2024-51737 is a high-severity vulnerability in RediSearch, published on 8 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-190, CWE-122

Which versions are affected by CVE-2024-51737?

How do I fix CVE-2024-51737?

No fix has been published for CVE-2024-51737 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-51737 being exploited?

There is no known exploitation of CVE-2024-51737 in the wild and no public exploit code.

Sources

Also known as GHSA-p2pg-67m3-4c76, UBUNTU-CVE-2024-51737.

Is CVE-2024-51737 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free