p PatchFirst

CVE-2026-84372

CVE-2026-84372 · Predis: Redis command injection and denial of service via CRLF smuggling in pipelined commands on aggregate connections

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 9.8 · Critical · EPSS 0.7% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • predis

    Versions
    • >= 3.0.0-RC1, < 3.3.0: Affected

    No fix published

  • predis/predis Packagist

    Versions
    • v3.0.0
    • v3.0.0-RC1
    • v3.0.1
    • v3.1.0
    • v3.2.0
    Affected ranges
    • ECOSYSTEM: ≥ 3.0.0-RC1, < 3.3.0

    Update to 3.3.0

  • php-nrk-predis Ubuntu:16.04:LTS

    Versions
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-nrk-predis Ubuntu:18.04:LTS

    Versions
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-nrk-predis Ubuntu:20.04:LTS

    Versions
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-nrk-predis Ubuntu:22.04:LTS

    Versions
    • 1.0.0-1
    • 1.1.9-5
    • 1.1.10-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-nrk-predis Ubuntu:24.04:LTS

    Versions
    • 2.2.0-1
    • 2.2.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-nrk-predis Ubuntu:26.10

    Versions
    • 2.4.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-nrk-predis Ubuntu:26.04:LTS

    Versions
    • 2.4.0-1
    • 2.4.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →