CVE-2025-49844: Redis is an open source, in-memory database that persists on disk.

Critical CVSS 9.9

CVE id
CVE-2025-49844
Published
Last modified

Affected packages

PackageAffected versionsFixed in
Redis
Runtimes and servers
< 6.2.20
>= 7.0, < 7.2.11
>= 7.4.0, < 7.4.6
>= 8.0.0, < 8.0.4
>= 8.2.0, < 8.2.2
6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2
Valkey
Runtimes and servers
< 7.2.11
>= 8.0.0, < 8.0.6
>= 8.1.0, < 8.1.4
7.2.11, 8.0.6, 8.1.4

How to fix it

Redis (Runtimes and servers)

Upgrade Redis to the fixed release of the line you run: 6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2.

redis-server --version
  • Install the patched Redis release of your series (the redis image tag or your packages) and restart it; on a managed service, apply the provider's maintenance update.

Valkey (Runtimes and servers)

Upgrade Valkey to the fixed release of the line you run: 7.2.11, 8.0.6, 8.1.4.

valkey-server --version
  • Install the patched Valkey release of your series (the valkey image tag).

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate the garbage collector, trigger a use-after-free and potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.