Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
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-5WPC-45JC-6CCC

Unbounded or stalled memcached replies can exhaust Dalli client resources

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

A malicious or compromised memcached server or intermediary can exhaust Dalli client resources or keep a TLS operation blocked beyond the configured socket_timeout.

Pipelined get_multi can accumulate a header with no terminating CRLF without the 8 KiB limit used for ordinary reply lines. A declared value length can cause an excessive read, up to memcached's 1 GiB item maximum, even when the default 1 MiB value_max_bytes limits writes. Stats and quiet or bulk operations accept an unbounded number of complete replies while waiting for their terminator. On Ruby 3.3 with its default OpenSSL gem, blocking TLS handshake and reply reads can exceed socket_timeout.

The attacker must control the memcached endpoint or an intermediary able to alter its replies. Both meta and binary protocols are covered where supported; the unterminated text header applies to the meta protocol. These issues can cause denial of service through memory use, CPU use, or a stalled caller.

Upgrade to the patch release for your supported line. Incoming values now default to the configured value_max_bytes limit (1 MiB by default). If your deployment stores larger values, set max_response_bytes to the required positive byte count.

Workaround

Restrict memcached connections and intermediaries to trusted infrastructure until you can upgrade.

Source: OX vulnerability database

Severity

UNKNOWN

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

Affected packages · 1

Packages affected by GHSA-5WPC-45JC-6CCC
EcosystemPackageVulnerableFixed in
RubyGems dalli — ~> 3.2.16~> 4.3.11~> 5.0.15~> 5.1.9~> 5.2.9

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.