Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

GHSA-5XVX-R8RG-5QM2

A quiet block, an interrupted get_multi, or a value containing CR/LF can return another key's value

Overview

Published
No date
Modified
No date
Unknown GitHub advisory
1 Registry packages
0 OS packages
0 Linux distributions
Yes Fix available
CVSS score Unknown, no score

Description

Three ways a connection can get out of step with memcached, so that a request reads the reply meant for a different request. Reads can then return another key's value, which can expose one user's cached data to another.

  1. A quiet (or multi) block on one thread or fiber. memcached still replies to a quiet request that fails, for example an add of a key that already exists. If another thread or fiber uses the same Dalli::Client while the block is open, its next request reads that reply as its own. This happens with the default options and a client shared across threads or fibers. Clients on 5.2 with defer_drain: true aren't affected. It affects every supported line, with both protocols; with the binary protocol (3.2 and 4.3) the connection stays out of step even after the block ends.

  2. A pipelined get_multi interrupted by a non-network exception (its block raising or breaking, Timeout.timeout, or a value that can't be deserialized). A later get_multi large enough to use the interleaved path parses the old replies first and leaves its own on the connection. It affects 4.3 and later.

  3. A value containing CR/LF, on 3.2 with protocol: :meta. 3.2's meta protocol read a value up to the first CRLF instead of by its size, so a stored value containing a crafted reply was returned for a later read of a different key, possibly with flags that cause it to be deserialized (Marshal by default). It affects 3.2.0 to 3.2.14 with protocol: :meta.

Workarounds
  • Don't share a client across threads or fibers while using quiet/multi; use a connection pool. On 5.2, defer_drain: true avoids the first issue.
  • Avoid raising or breaking out of a get_multi block, and avoid wrapping get_multi in Timeout.timeout.
  • On 3.2, use the binary protocol (the default).

Source: OX vulnerability database

Severity

UNKNOWN

No CVSS vector in the source. Severity comes from the advisory.

Affected packages · 1

Packages affected by GHSA-5XVX-R8RG-5QM2
EcosystemPackageVulnerableFixed in
RubyGems dalli — ~> 3.2.15~> 4.3.9~> 5.0.12~> 5.1.65.2.4

Open a package to see all its vulnerabilities.

Operating systems

No Linux distribution reports this ID.

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.