Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain high-privilege Valkey operator access
-
DeliveryLoad crafted module implementing self-stopping timer callback
-
ExploitTimer fires triggering moduleTimerHandler
-
ExecutionCallback invokes StopTimer on own ID, freeing timer
-
PersistHandler double-frees already-freed timer object
-
ImpactValkey process crash (availability impact)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Exploitation Conditions | Exploitation requires high-privilege access sufficient to load and control Valkey modules (PR:H per CVSS 4.0 vector) - this is typically restricted to operators or administrators of the Valkey instance. The Module Timer Subsystem must be active and a module must be loaded that registers a timer callback which calls ValkeyModule_StopTimer() on its own currently-firing timer ID; this is a non-default, specific code pattern not present in standard Valkey operations. UI:P in the CVSS 4.0 vector indicates the crash is triggered passively when the timer fires rather than requiring interactive user action. Exploitation is limited to: (1) deployments with module loading enabled, (2) an attacker possessing high-privilege module control, and (3) a module implementing the specific self-stopping timer pattern. Default Valkey deployments running no custom modules are not exposed to this vulnerability. |
| Impact | The CVSS 4.0 base score of 1.9 accurately reflects the highly constrained risk profile. AV:N confirms network reachability, but PR:H requires high-privilege access - specifically the ability to load and control Valkey modules - and VA:L caps the impact at a low-severity availability disruption (potential crash). No EPSS data was provided; however, given the high-privilege prerequisite, mass or opportunistic exploitation is implausible. The vulnerability is not listed in CISA KEV, so active exploitation in the wild is not confirmed. A public PoC is available (GitHub attachment), which elevates the theoretical risk slightly, but the exploitation conditions render this a low operational priority for the vast majority of Valkey deployments. The primary risk window is narrow: operators running custom or third-party Valkey modules that implement self-stopping timer callbacks. The 'Information Disclosure' tag in the input metadata is inconsistent with CVSS impact metrics (VC:N, VI:N, VA:L) and the CWE-415 classification - no confidentiality impact is indicated. |
| Exploit ScenarioDerived | A high-privileged attacker with the ability to load modules into a Valkey instance deploys a crafted module that registers a timer callback calling ValkeyModule_StopTimer() on its own timer ID. When the timer fires, moduleTimerHandler() double-frees the timer object after the callback returns, potentially corrupting the allocator and crashing the Valkey process. A public PoC demonstrating this exact scenario is available at https://github.com/user-attachments/files/30118801/PoC.zip. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Double-free memory corruption in Valkey 9.1.0's Module Timer Subsystem allows a high-privileged remote attacker to crash the server by triggering a self-stopping timer callback pattern. The moduleTimerHandler function in src/module.c frees the timer object both inside the callback (via ValkeyModule_StopTimer) and again after callback return, causing a double-free. A public proof-of-concept has been disclosed via GitHub, though the CVSS 4.0 score of 1.9 reflects that exploitation requires high-privilege module control, severely constraining real-world impact to low-severity availability disruption.
RemediationAI
Apply upstream patch commit b349fe2821e3998534b1454c1b64a478daf8c6b7, available via GitHub pull request https://github.com/valkey-io/valkey/pull/4211. Note that the fix is available at the commit and PR level; a formally versioned patched release has not been independently confirmed in the available data, so monitor the Valkey release page for a tagged release incorporating this commit. As a compensating control, audit all loaded Valkey modules to ensure none implement a self-stopping timer callback pattern (a callback invoking ValkeyModule_StopTimer on its own ID) - removing or rewriting such modules eliminates the exploitation condition entirely with no availability trade-off. If module loading is not operationally required, disabling it via configuration removes the entire Module Timer attack surface; this is the strongest available workaround until a patched release is confirmed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Valkey (cpe:2.3:a:valkey-io:valkey) is a Linux Foundation-maintained, open-source Redis-compatible in-memory data store. The vulnerability resides in the Module Timer Subsystem in src/module.c within the moduleTimerHandler() event-loop callback. The root cause (CWE-415 Double Free) arises from a use-after-free cleanup race: when a module timer callback invokes ValkeyModule_StopTimer() on its own firing timer ID, the radix-tree entry and timer object are freed inside the callback; upon return, moduleTimerHandler() calls raxRemove() and zfree() on the same already-freed pointer. The upstream fix (commit b349fe2821e3998534b1454c1b64a478daf8c6b7, PR #4211) preserves the timer ID via memcpy before invoking the callback, then performs a raxFind check to confirm the timer is still live in the tree before attempting cleanup, eliminating the double-free path.
Know when Valkey gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Requires high-privilege module control and a specific self-stopping timer pattern (AC:H); no confidentiality or integrity impact, only a potential crash (A:L).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was determined in valkey-io valkey 9.1.0. Impacted is the function moduleTimerHandler of the file src/module.c of the component Module Timer Subsystem. This manipulation causes double free. The attack can be initiated remotely. The exploit has been publicly disclosed and may be utilized. Patch name: b349fe2821e3998534b1454c1b64a478daf8c6b7. To fix this issue, it is recommended to deploy a patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
UAF in Redis 8.2.1 via crafted Lua scripts by authenticated users. EPSS 12.4%. Patch available.
Out-of-bounds read in Valkey's cluster slot-migration RDB loader allows a network-positioned attacker to crash affected
Use-after-free in Valkey's RESTORE command allows a low-privileged remote attacker to potentially execute arbitrary code
Use-after-free in Valkey's TLS connection handler allows an authenticated remote attacker to crash the server or potenti
Redis is an open source, in-memory database that persists on disk. Rated high severity (CVSS 7.5), this vulnerability is
Denial of service in Valkey 9.0.0 through 9.0.2 allows unauthenticated network attackers to crash the server by exploiti
Out-of-bounds read in Valkey clusterbus port processing allows network-adjacent attackers to crash affected systems by s
Response-stream injection in Valkey (the Redis fork) lets an authenticated user abuse Lua scripting commands to smuggle
Out-of-bounds read in Valkey's `kvstoreGetHashtable` function (src/kvstore.c) allows an attacker who can supply a crafte
EUVD-2026-68457
GHSA-pjvh-64mj-595g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB