diff --git a/gems/dalli/GHSA-5wpc-45jc-6ccc.yml b/gems/dalli/GHSA-5wpc-45jc-6ccc.yml new file mode 100644 index 0000000000..3b4da931d7 --- /dev/null +++ b/gems/dalli/GHSA-5wpc-45jc-6ccc.yml @@ -0,0 +1,53 @@ +--- +gem: dalli +ghsa: 5wpc-45jc-6ccc +url: https://github.com/petergoldstein/dalli/security/advisories/GHSA-5wpc-45jc-6ccc +title: Unbounded or stalled memcached replies can exhaust Dalli client + resources +date: 2026-11-14 +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. +patched_versions: + - "~> 3.2.16" + - "~> 4.3.11" + - "~> 5.0.15" + - "~> 5.1.9" + - "~> 5.2.9" + - ">= 5.3.3" +related: + url: + - https://github.com/petergoldstein/dalli/security/advisories/GHSA-5wpc-45jc-6ccc + - https://github.com/petergoldstein/dalli/releases/tag/v5.3.3 + - https://github.com/petergoldstein/dalli/releases/tag/v5.2.9 + - https://github.com/petergoldstein/dalli/releases/tag/v5.1.9 + - https://github.com/petergoldstein/dalli/releases/tag/v5.0.15 + - https://github.com/petergoldstein/dalli/releases/tag/v4.3.11 + - https://github.com/petergoldstein/dalli/releases/tag/v3.2.16 +notes: | + A CVE has been requested through GitHub but has not yet been assigned.