Use After Free Affecting redis/redis package, versions [,8.2.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.1% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-REDISREDIS-13332699
  • published6 Oct 2025
  • disclosed3 Oct 2025
  • creditBenny Isaacs, Nir Brakha, Sagi Tzadik

Introduced: 3 Oct 2025

NewCVE-2025-49844  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade redis/redis to version 8.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free. An attacker can gain control over freed memory and execute arbitrary code within the server process by submitting specially crafted scripts via standard commands. This can compromise all in-memory data, session tokens, and application state.

Note:

This is only exploitable if the attacker is authenticated and has permission to execute Lua scripts.

Workaround

This vulnerability can be mitigated by restricting or disabling Lua scripting using ACLs to block EVAL and EVALSHA commands, limiting access to trusted hosts, enforcing strong authentication, and following Redis hardening guidance.

CVSS Base Scores

version 4.0
version 3.1