p PatchFirst

CVE-2025-27151

CVE-2025-27151 · redis-check-aof may lead to stack overflow and potential RCE

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

Redis is an open source, in-memory database that persists on disk. In versions starting from 7.0.0 to before 8.0.2, a stack-based buffer overflow exists in redis-check-aof due to the use of memcpy with strlen(filepath) when copying a user-supplied file path into a fixed-size stack buffer. This allows an attacker to overflow the stack and potentially achieve code execution. This issue has been patched in version 8.0.2.

CVSS 4.7 · Medium · EPSS 1.0% · Fix available

Published
Updated

Stack: system · database

Affected products and versions

  • redis

    Versions
    • >= 7.0.0, < 8.0.2: Affected

    No fix published

  • redict Debian:14

    Versions
    • 7.3.0+ds-1
    • 7.3.0+ds-2
    • 7.3.0+ds-3
    • 7.3.0+ds-3~bpo12+1
    • 7.3.1+ds-1
    • 7.3.2+ds-1
    • 7.3.2+ds-1~bpo12+1
    • 7.3.5+ds-1~bpo12+1
    Affected ranges
    • ECOSYSTEM: < 7.3.5+ds-1

    Update to 7.3.5+ds-1

  • redis Debian:12

    Versions
    • 5:7.0.11-1
    • 5:7.0.11-1+deb12u1
    • 5:7.0.12-1
    • 5:7.0.12-2
    • 5:7.0.13-1
    • 5:7.0.13-2
    • 5:7.0.14-1
    • 5:7.0.14-2
    • 5:7.0.15-1~deb12u1
    • 5:7.0.15-1~deb12u2
    • 5:7.0.15-1~deb12u3
    • 5:7.0.15-1~deb12u4
    Affected ranges
    • ECOSYSTEM: < 5:7.0.15-1~deb12u5

    Update to 5:7.0.15-1~deb12u5

  • redis Debian:13

    Affected ranges
    • ECOSYSTEM: < 5:8.0.2-2

    Update to 5:8.0.2-2

  • redis Debian:14

    Affected ranges
    • ECOSYSTEM: < 5:8.0.2-2

    Update to 5:8.0.2-2

  • valkey Debian:13

    Affected ranges
    • ECOSYSTEM: < 8.1.1+dfsg1-1.1

    Update to 8.1.1+dfsg1-1.1

  • valkey Debian:14

    Affected ranges
    • ECOSYSTEM: < 8.1.1+dfsg1-1.1

    Update to 8.1.1+dfsg1-1.1

  • redis Ubuntu:24.04:LTS

    Versions
    • 5:7.0.12-1
    • 5:7.0.14-1
    • 5:7.0.14-2
    • 5:7.0.15-1
    • 5:7.0.15-1build1
    • 5:7.0.15-1build2
    • 5:7.0.15-1ubuntu0.24.04.1
    • 5:7.0.15-1ubuntu0.24.04.2
    • 5:7.0.15-1ubuntu0.24.04.3
    • 5:7.0.15-1ubuntu0.24.04.4
    • 5:7.0.15-1ubuntu0.24.04.5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →