Critical Integer Overflow Vulnerability in Memcached - CVE-2016-8705

memcached Updated 02 Oct 2025

Summary

06/01/2017
N/A
Yes i
Critical
9.8

ALPINE-CVE-2016-8705: Multiple integer overflows in process_bin_update 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 exe... Affects memcached versions < 1.4.33-r0. Fixed in 1.4.33-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Memcached is a high-performance, distributed memory object caching system, primarily used to speed up dynamic web applications by alleviating database load. It is designed to be simple and efficient, allowing developers to store and retrieve data quickly. However, the package has been found to be vulnerable to multiple integer overflows, which can lead to severe security risks.

Vulnerability Detail

The vulnerability arises from multiple integer overflows in the process_bin_update function of Memcached, which processes commands of the Memcached binary protocol. This flaw can be exploited to cause a heap overflow, potentially allowing an attacker to execute arbitrary code remotely. Given the nature of this vulnerability, it poses a significant risk to systems using affected versions of Memcached, with a CVSS score of 9.8 indicating its critical severity.

How To Fix

Minimum fixed version

1.4.33-r0

This is the first release that contains the fix.

sudo apk add --upgrade memcached

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, consider disabling the Memcached service until the package can be updated. This can be done using the command: 'rc-service memcached stop'. However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The integer overflow vulnerability in Memcached (CVE-2016-8705) poses a significant risk to systems using affected versions. It is crucial to update to the patched version to mitigate potential exploitation. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for memcached →

Share this vulnerability

FAQ

CVE-2016-8705 is a critical vulnerability in Memcached that allows for remote code execution due to integer overflows.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Not addressing this vulnerability could allow attackers to execute arbitrary code on your server, leading to data breaches or service disruptions.

Yes, Vulert monitors open-source vulnerabilities in real-time using just a manifest file like package-lock.json, providing alerts for any issues.

If immediate updates are not possible, consider stopping the Memcached service as a temporary workaround until you can apply the necessary updates.

Related vulnerabilities

Recent vulnerabilities recorded for memcached.

How To Fix

Minimum fixed version

1.4.33-r0

This is the first release that contains the fix.

sudo apk add --upgrade memcached

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback