Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-84372 EUVD-2026-69701GHSA-w6f5-v2h6-g786

Predis: Redis command injection and denial of service via CRLF smuggling in pipelined commands on aggregate connections

Published Sep 1, 2026 · Updated Sep 2, 2026 · Assigned by GitHub_M

Description

Predis is a flexible and feature-complete Redis and Valkey client for PHP. From version 3.0.0-RC1 until version 3.3.0, pipeline handling on aggregate cluster and replication connections reparses an already serialized RESP buffer in AbstractAggregateConnection::write() by splitting it with explode("\r\n") instead of honoring RESP length prefixes. Attacker-controlled keys or values containing CRLF sequences can therefore be interpreted by Command::deserializeCommand() as additional commands. On cluster connections, ClusterStrategy::getFakeKey() can route injected keyless commands using the literal fake key value "key", permitting operations such as shard-wide cache deletion, targeted data modification, data reads, or node disruption. On replication connections, malformed reparsing can throw an uncaught exception and repeatedly terminate affected requests. Only pipeline() reaches this vulnerable path; transaction() and MULTI are not affected. This issue is fixed in version 3.3.0.

Affected products

VendorProductAffectedFixed
predis predis >= 3.0.0-RC1, < 3.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 php-nrk-predis No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist predis/predis >= 3.0.0-RC1, < 3.3.0 3.3.0 GHSA-w6f5-v2h6-g786

References