FreeBSD : redis,valkey -- Lua Use-After-Free may lead to remote code execution (17e85cae-a115-11f0-9446-f02f7497ecda)

critical Nessus Plugin ID 266598

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The version of FreeBSD installed on the remote host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the 17e85cae-a115-11f0-9446-f02f7497ecda advisory.

redis reports:

An authenticated user may 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.
An additional workaround to mitigate the problem 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.


Tenable has extracted the preceding description block directly from the FreeBSD security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://nvd.nist.gov/vuln/detail/CVE-2025-49844

http://www.nessus.org/u?e690dcb6

Plugin Details

Severity: Critical

ID: 266598

File Name: freebsd_pkg_17e85caea11511f09446f02f7497ecda.nasl

Version: 1.2

Type: local

Published: 10/4/2025

Updated: 10/10/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 10.0

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2025-49844

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 8.6

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:redis74, cpe:/o:freebsd:freebsd, p-cpe:/a:freebsd:freebsd:redis72, p-cpe:/a:freebsd:freebsd:redis, p-cpe:/a:freebsd:freebsd:redis62, p-cpe:/a:freebsd:freebsd:valkey, p-cpe:/a:freebsd:freebsd:redis80

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 10/4/2025

Vulnerability Publication Date: 10/3/2025

Reference Information

CVE: CVE-2025-49844

IAVA: 2025-A-0731