CVE-2026-84372predis
RESP Command Injection in Predis Pipeline
Critical 9.8 No auth needed
Follow: this CVE · predis · predis We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Sep 1, 2026
- Updated
- Sep 9, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-93
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Predis versions 3.0.0-RC1 through 3.2.x contain a command injection vulnerability in pipeline handling for cluster and replication connections. An attacker can embed CRLF sequences in keys or values to inject additional commands, enabling cache deletion, data modification, unauthorized reads, or node disruption. Only the pipeline() function is affected; transaction() and MULTI are not.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 3.3.0
Update Predis to version 3.3.0 or later.
- Apply the vendor's security update for predis.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | predis/predis |
≥ 3.0.0-RC1 < 3.3.0 |
3.3.0 |
composer require "predis/predis:^3.3.0" |
Per OSV / GitHub Advisories (GHSA-w6f5-v2h6-g786). Check the version in your lockfile before upgrading.
Affected products
- predis · predis
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.