Skip to content
OpenAdvisories
High · 7.0 CVE-2024-51737 EUVD-2024-45794

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

Published Jan 8, 2025 · Updated Jan 8, 2025 · 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 products

VendorProductAffectedFixed
RediSearch RediSearch >= 2.0.0, < 2.6.24, >= 2.8.0, < 2.8.21, >= 2.10.0, < 2.10.10 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS redisearch No fix yet —
Ubuntu 25.10 redisearch No fix yet —
Ubuntu 24.04 LTS redisearch No fix yet —
Ubuntu 22.04 LTS redisearch No fix yet —
Ubuntu 20.04 LTS redisearch No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS redisearch No fix yet —

References