CVE-2016-8704
CriticalSummary
An integer overflow in the process_bin_append_prepend function in Memcached can be exploited to cause heap overflow and lead to remote code execution.
Risk Assessment
Exploitation of this vulnerability could allow an attacker to remotely execute code on the server, posing a significant security risk.
Recommendation
It is recommended to update Memcached to the latest version to mitigate this vulnerability and to monitor the system for unauthorized activities.
Other vulnerabilities in Memcached
See all- CVE-2017-9951High
The try_read_command function in memcached before version 1.4.39 allows remote attackers to cause a denial of service (segmentation fault) via a request to add/set a key, which makes a comparison between signed and unsigned int and triggers a heap-based buffer over-read.
- CVE-2016-8706High
An integer overflow in the process_bin_sasl_auth function in Memcached can be exploited to cause heap overflow and lead to remote code execution.
- CVE-2016-8705Critical
Multiple integer overflows in the process_bin_update function in Memcached can be exploited to cause heap overflow and lead to remote code execution.
- CVE-2026-90698Medium
In memcached 1.6.41/1.6.42/1.6.43, the try_read_command_asciiauth function in proto_text.c (mcmc Tokenizer component) allows an out-of-bounds read. The attack can be launched remotely and the exploit has been publicly released. The fix is available in version 1.6.44 (commit af05c9302bba508b736c3da1d5670f63fe8b7db4).
- CVE-2026-47784High
Memcached before version 1.6.42 uses the memcmp function for password comparison in SASL authentication, causing a timing side-channel vulnerability. An attacker can read passwords by measuring response times.
- CVE-2026-47783High
In memcached before version 1.6.42, username data for SASL password database authentication has a timing side channel because a loop exits as soon as a valid username is found by sasl_server_userdb_checkpass.
Original NVD description (English source)
An integer overflow in the process_bin_append_prepend function in Memcached, which is responsible for processing multiple commands of Memcached binary protocol, can be abused to cause heap overflow and lead to remote code execution.

