Skip to main content

Dragonfly CVE-2026-47206

| EUVDEUVD-2026-39810 LOW
Improper Encoding or Escaping of Output (CWE-116)
2026-06-26 GitHub_M
2.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Dragonfly with low-privilege credentials
  2. Delivery
    Submit EVAL with crafted Lua redis.error_reply() containing embedded CRLF
  3. Exploit
    EvalSerializer writes raw CRLF into response stream
  4. Execution
    Connection-pool client parses injected frame as next command's response
  5. Impact
    Cross-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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Dragonfly < 1.38.9

Affected Packages

euvd dragonfly fix: 1.38.9

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

Vendor (GitHub_M) PRIMARY 2.3 LOW
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
vuln.today AI 4.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 26, 2026 - 19:02 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
emerging Redis-alternative, smaller enterprise footprint than Redis
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2026-24124 CRITICAL POC
9.8 Jan 22

Dragonfly P2P file distribution system versions 2.4.1-rc.0 and below have a missing authentication vulnerability allowin

CVE-2021-33564 CRITICAL POC
9.8 May 29

An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write

CVE-2025-59353 HIGH POC
7.7 Sep 17

Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t

CVE-2026-104192 CRITICAL
9.6 Oct 13

A double-free in Dragonfly's RDB stream loader (OpaqueObjLoader::CreateStream in src/server/rdb_load.cc) lets a remote,

CVE-2026-62357 HIGH
8.8 Aug 18

Integer overflow in Dragonfly's Count-Min Sketch implementation prior to v1.40.0 allows unauthenticated remote clients t

CVE-2026-111279 HIGH
8.7 Oct 15

Unauthenticated remote attackers can crash Dragonfly through 2.0.2 by issuing a single HRANDFIELD, ZRANDMEMBER, or SRAND

CVE-2025-59345 HIGH
7.7 Sep 17

Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t

CVE-2026-54341 HIGH
7.5 Jun 26

Remote denial of service in DragonflyDB before 1.39.0 lets an unauthenticated attacker crash the entire server with a si

CVE-2022-41967 HIGH
7.5 Dec 28

Dragonfly is a Java runtime dependency management library. Rated high severity (CVSS 7.5), this vulnerability is remotel

CVE-2025-26268 LOW POC
3.3 Apr 17

DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of service (daemon crash) via a crafted

CVE-2025-26269 LOW POC
3.3 Apr 17

DragonflyDB Dragonfly through 1.28.2 (fixed in 1.29.0) allows authenticated users to cause a denial of service (daemon c

CVE-2025-59410 MEDIUM
5.5 Sep 17

Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated medium severity (CVSS 5.5),

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy