Improper Input Validation Affecting redis package, versions <7.2.9-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE320-REDIS-10264098
  • published30 May 2025
  • disclosed29 May 2025

Introduced: 29 May 2025

NewCVE-2025-27151  (opens in a new tab)
CWE-20  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade Alpine:3.20 redis to version 7.2.9-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream redis package and not the redis package as distributed by Alpine. See How to fix? for Alpine:3.20 relevant fixed versions and status.

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 Base Scores

version 3.1