{
  "id": "CVE-2025-27151",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-27151",
  "published_at": "2025-05-29T09:07:34.779Z",
  "title": "redis-check-aof may lead to stack overflow and potential RCE",
  "vendor": "redis",
  "product": "redis",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 4.7,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "redis",
        "product": "redis",
        "ranges": [
          "\u003e= 7.0.0, \u003c 8.0.2"
        ],
        "fixed_in": [
          "8.0.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade redis to 8.0.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/redis/redis/releases/tag/8.0.2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
