---
title: "CVE-2016-8704\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-8704?format=md
keywords: index, follow
---

# CVE-2016-8704

Publication date 2 November 2016

Last updated 25 August 2025

---

Ubuntu priority

**High**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**9.8 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2016-8704?format=md#impact-score)

Toggle side navigation

## Description

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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| memcached | 16.10 yakkety | Fixed 1.4.25-2ubuntu2.1 |
| 16.04 LTS xenial | Fixed 1.4.25-2ubuntu1.2 |
| 14.04 LTS trusty | Fixed 1.4.14-0ubuntu9.1 |
| 12.04 LTS precise | Fixed 1.4.13-0ubuntu2.2 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2016-8704?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| memcached | * Upstream:   [bd578fc](https://github.com/memcached/memcached/commit/bd578fc34b96abe0f8d99c1409814a09f51ee71c) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.8 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.8 · Critical |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-8704)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-8704)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-8704)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-8704)

### Related Ubuntu Security Notices (USN)

+ [USN-3120-1](https://usn.ubuntu.com/USN-3120-1)
+ Memcached vulnerabilities
+ 2 November 2016

### Other references

* <http://www.talosintelligence.com/reports/TALOS-2016-0219/>
* <http://blog.talosintel.com/2016/10/memcached-vulnerabilities.html>
* <https://github.com/memcached/memcached/wiki/ReleaseNotes1433>
* <https://www.cve.org/CVERecord?id=CVE-2016-8704>
