Description
Shopify async-memcached before 0.11.0 contains a command injection vulnerability in Client::validate_meta_flags that allows attackers to inject extra memcached meta protocol tokens via whitespace in flags. Attackers controlling part of a meta flag can add quiet, opaque, mode or size override tokens to alter operations and desynchronize responses on shared connections.
Affected products and versions
Shopify async-memcached< 0.11.0Fixed in: 0.11.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- Low impact
Weakness type (CWE)
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
- github.com/Shopify/async-memcached/security/advisories/GHSA-f9wj-cj54-79vv vendor advisory
- github.com/Shopify/async-memcached/commit/500c8296cbbde2dde7fc2fc632161e946b1ad438 patch
- github.com/Shopify/async-memcached/releases/tag/v0.11.0
- github.com/Shopify/async-memcached/blob/v0.10.0/src/lib.rs#L345-L386
- www.vulncheck.com/advisories/shopify-async-memcached-before-0.11.0-meta-protocol-injection
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.