Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Dragonfly with low-privilege credentials
-
DeliverySubmit EVAL with crafted Lua redis.error_reply() containing embedded CRLF
-
ExploitEvalSerializer writes raw CRLF into response stream
-
ExecutionConnection-pool client parses injected frame as next command's response
-
ImpactCross-client response data leakage or state corruption
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Exploitation Conditions | Exploitation requires: (1) authenticated access to Dragonfly with permission to execute EVAL or EVALSHA commands - the CVSS PR:L metric confirms a low-privilege authenticated account is the minimum prerequisite; (2) the client connecting to Dragonfly must use a connection pool that multiplexes multiple logical clients over a single TCP connection, as desynchronization only affects clients sharing a socket; (3) the attacker must be able to submit a Lua script containing redis.error_reply() or redis.status_reply() with embedded \r\n sequences. Exploitation is limited by: the requirement for valid credentials (no unauthenticated path); the need for a specific client-side pooling architecture (AT:P in CVSS 4.0); and the absence of direct impact on the Dragonfly process itself - harm is confined to cross-client response confusion in the pool. |
| Impact | The CVSS 4.0 score of 2.3 (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N) accurately reflects the constrained impact. Exploitation requires PR:L - the attacker must already hold valid Dragonfly credentials - and AT:P signals that specific conditions (connection-pool clients that multiplex multiple logical clients over a shared TCP connection) must be present for the desynchronization to cross client boundaries. The vulnerable system itself suffers no direct confidentiality, integrity, or availability impact; harm is limited to subsequent-system scope (SC:L/SI:L), meaning a pooled client could receive a response intended for another client. No EPSS data was supplied in the intelligence feed, and there is no CISA KEV listing. No public proof-of-concept exploit has been identified. In practice this is a low-priority finding: it requires an account on the Dragonfly instance, a connection-pooling client library, and the deliberate execution of a crafted Lua script - conditions that together substantially reduce the realistic attacker population. |
| Exploit ScenarioDerived | An authenticated Dragonfly user executes a Lua script via EVAL that returns redis.error_reply("ERR msg\r\n+INJECTED\r\n"); the EvalSerializer forwards the raw string to the connection's response buffer, inserting a spurious +INJECTED\r\n RESP frame. A connection-pool client sharing that socket across multiple logical sessions parses the injected frame as the response to the next pending command - for example, a subsequent PING issued by a different pooled client receives the injected string instead of +PONG, corrupting its state or exposing response data cross-client. No public exploit code is known; the test added in PR #7332 demonstrates the exact pipeline-based reproduction path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 26, 2026
RESP protocol injection in Dragonfly's EvalSerializer allows an authenticated low-privilege user to embed raw CRLF sequences inside Lua redis.error_reply() and redis.status_reply() return values, causing response stream desynchronization for connection-pool clients. All Dragonfly releases prior to 1.39.9 are affected; the vulnerability is confirmed fixed in 1.39.9 per GitHub security advisory GHSA-h77h-c6hc-qc9h. No public exploit has been identified at time of analysis, and exploitation requires authenticated access plus a connection-pooling client architecture, substantially limiting real-world risk.
RemediationAI
Upgrade Dragonfly to version 1.39.9 or later; this is the vendor-confirmed fix documented in GHSA-h77h-c6hc-qc9h and implemented in PR #7332 (https://github.com/dragonflydb/dragonfly/pull/7332). If an immediate upgrade is not feasible, operators can reduce exposure by restricting Lua EVAL command access to the minimum required set of trusted accounts using Dragonfly's ACL controls, preventing untrusted authenticated users from executing arbitrary scripts. As an additional layer, connection-pool clients can be configured to use dedicated (non-multiplexed) connections or to validate response framing, though this trades throughput for safety. Note that the StripCRLF sanitization introduced in 1.39.9 silently modifies strings containing \r or \n - callers relying on those characters in redis.error_reply() or redis.status_reply() return values will observe truncated output after upgrading.
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
Dragonfly is a Redis-compatible in-memory data store targeting modern cloud workloads (CPE: cpe:2.3:a:dragonflydb:dragonfly:*:*:*:*:*:*:*:*). The RESP (REdis Serialization Protocol) wire protocol uses CRLF (\r\n) sequences as frame delimiters - a structural property shared with HTTP/1.1 that makes it susceptible to injection if user-supplied strings are emitted verbatim into the response stream. The root cause is CWE-116 (Improper Encoding or Escaping of Output): the EvalSerializer class in src/server/main_service.cc forwarded strings returned by Lua redis.error_reply() and redis.status_reply() directly to the response buffer without sanitizing embedded CR or LF characters. Because RESP frames are delimited by \r\n, an attacker-controlled string containing those bytes is parsed by the receiving client as a complete, separate protocol message. The fix - confirmed in PR #7332 - introduces a StripCRLF() helper that iterates the string and discards \r and \n before serialization, and adds regression tests verifying that pipeline PING responses following an injected EVAL are not consumed by the injected frame.
Know when Dragonfly 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:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Network vector with low privilege required; high complexity because connection-pool multiplexing is a prerequisite; scope change affects pooled clients with low C and I impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Dragonfly is an in-memory data store built for modern application workloads. Prior to 1.39.9, Dragonfly has a RESP Protocol Injection via Lua redis.error_reply() in EvalSerializer. An authenticated user can inject arbitrary RESP messages into the connection's response stream, potentially causing response desynchronization in connection-pool clients. This vulnerability is fixed in 1.39.9.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Dragonfly P2P file distribution system versions 2.4.1-rc.0 and below have a missing authentication vulnerability allowin
An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write
Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t
A double-free in Dragonfly's RDB stream loader (OpaqueObjLoader::CreateStream in src/server/rdb_load.cc) lets a remote,
Integer overflow in Dragonfly's Count-Min Sketch implementation prior to v1.40.0 allows unauthenticated remote clients t
Unauthenticated remote attackers can crash Dragonfly through 2.0.2 by issuing a single HRANDFIELD, ZRANDMEMBER, or SRAND
Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t
Remote denial of service in DragonflyDB before 1.39.0 lets an unauthenticated attacker crash the entire server with a si
Dragonfly is a Java runtime dependency management library. Rated high severity (CVSS 7.5), this vulnerability is remotel
DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of service (daemon crash) via a crafted
DragonflyDB Dragonfly through 1.28.2 (fixed in 1.29.0) allows authenticated users to cause a denial of service (daemon c
Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated medium severity (CVSS 5.5),
EUVD-2026-39810
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB