Every CVE Search/ Get API key

CVE-2016-8704

An integer overflow in the process_bin_append_prepend function in Memcached, which is responsible...

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

23.2%Up 15.8 points since Feb 4, 2022
90%50%10%1%

What each source reports

CVE List Score used 9.8

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.

Record
CVE-2016-8704
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
EUVDEUVD-2016-9543 9.8

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.

Record
EUVD-2016-9543
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-5hm6-wpg3-fv45 9.8

An integer overflow in the process_bin_append_prepend function in Memcached, which is responsible...

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.

Record
GHSA-5hm6-wpg3-fv45
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-190
Updated
2026-11-02
NVD 9.8

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.

Record
CVE-2016-8704
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-190
Updated
2026-11-02
OSVALPINE-CVE-2016-8704 9.8

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.

Record
ALPINE-CVE-2016-8704
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2016-8704
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2016-8704 9.8

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.

Record
DEBIAN-CVE-2016-8704
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2016:2819 9.8

Red Hat Security Advisory: memcached security update

Record
RHSA-2016:2819
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2016:2820 9.8

Red Hat Security Advisory: memcached security update

Record
RHSA-2016:2820
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2017:0059 8.8

Red Hat Security Advisory: Red Hat Mobile Application Platform 4.2.1 Security Update - SDKs and RPMs

Record
RHSA-2017:0059
CVSS 3.0
8.8 HighCVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2016-8704 9.8

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.

Record
UBUNTU-CVE-2016-8704
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2016-0381 No score

Updated memcached packages fix security vulnerability

Aleksandar Nikolic discovered that Memcached incorrectly handled certain malformed commands. A remote attacker could use this issue to cause Memcached to crash, resulting in a denial of service, or possibly execute arbitrary code (CVE-2016-8704, CVE-2016-8705, CVE-2016-8706).

Record
MGASA-2016-0381
Updated
2026-11-02
OSVopenSUSE-SU-2024:10021-1 No score

memcached-1.4.33-1.1 on GA media

These are all security issues fixed in the memcached-1.4.33-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10021-1
Updated
2026-11-02
OSVSUSE-SU-2018:0778-1 No score

Security update for memcached

This update for memcached fixes the following issues:

Security issues fixed:

  • CVE-2011-4971: remote DoS (bsc#817781).
  • CVE-2013-0179: DoS when printing out keys to be deleted in verbose mode (bsc#798458).
  • CVE-2013-7239: SASL authentication allows wrong credentials to access memcache (bsc#857188).
  • CVE-2013-7290: remote DoS (segmentation fault) via a request to delete a key (bsc#858677).
  • CVE-2013-7291: remote DoS (crash) via a request that triggers 'unbounded key print' (bsc#858676).
  • CVE-2016-8704: Server append/prepend remote code execution (bsc#1007871).
  • CVE-2016-8705: Server update remote code execution (bsc#1007870).
  • CVE-2016-8706: Server ASL authentication remote code execution (bsc#1007869).
  • CVE-2017-9951: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705) (bsc#1056865).
Record
SUSE-SU-2018:0778-1
Updated
2026-11-02
OSVSUSE-SU-2018:0807-1 No score

Security update for memcached

This update for memcached fixes the following issues:

Security issues fixed:

  • CVE-2011-4971: remote DoS (bsc#817781).
  • CVE-2013-0179: DoS when printing out keys to be deleted in verbose mode (bsc#798458).
  • CVE-2013-7239: SASL authentication allows wrong credentials to access memcache (bsc#857188).
  • CVE-2013-7290: remote DoS (segmentation fault) via a request to delete a key (bsc#858677).
  • CVE-2013-7291: remote DoS (crash) via a request that triggers 'unbounded key print' (bsc#858676).
  • CVE-2016-8704: Server append/prepend remote code execution (bsc#1007871).
  • CVE-2016-8705: Server update remote code execution (bsc#1007870).
  • CVE-2016-8706: Server ASL authentication remote code execution (bsc#1007869).
  • CVE-2017-9951: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705) (bsc#1056865).
Record
SUSE-SU-2018:0807-1
Updated
2026-11-02
OSVUSN-3120-1 No score

memcached vulnerabilities

Aleksandar Nikolic discovered that Memcached incorrectly handled certain malformed commands. A remote attacker could use this issue to cause Memcached to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-3120-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
memcached
Alpine:v3.4
before 1.4.33-r0
1.4.33-r0
memcached
Alpine:v3.5
before 1.4.33-r0
1.4.33-r0
memcached
Debian:12
before 1.4.33-1
1.4.33-1
memcached
Debian:13
before 1.4.33-1
1.4.33-1
memcached
Debian:14
before 1.4.33-1
1.4.33-1
memcached
Debian:7
From an advisory covering 4 CVEs
before 1.4.13-0.2+deb7u2, plus listed versions
1.4.13-0.21.4.13-0.2+deb7u1
1.4.13-0.2+deb7u2
memcached
Debian:8
From an advisory covering 3 CVEs
before 1.4.21-1.1+deb8u1, plus listed versions
1.4.21-1.1
1.4.21-1.1+deb8u1
memcached
Mageia:5
From an advisory covering 3 CVEs
before 1.4.25-1.mga5
1.4.25-1.mga5
memcached
Red Hat:enterprise_linux:7::client
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
Show 31 moreShow less
Affected packages
PackageAffectedFixed
memcached-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached
Red Hat:enterprise_linux:7::computenode
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached
Red Hat:enterprise_linux:7::server
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached
Red Hat:enterprise_linux:7::workstation
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 3 CVEs
before 0:1.4.15-10.el7_3.1
0:1.4.15-10.el7_3.1
memcached
Red Hat:enterprise_linux:6::client
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-debuginfo
Red Hat:enterprise_linux:6::client
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-devel
Red Hat:enterprise_linux:6::client
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached
Red Hat:enterprise_linux:6::computenode
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-debuginfo
Red Hat:enterprise_linux:6::computenode
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-devel
Red Hat:enterprise_linux:6::computenode
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached
Red Hat:enterprise_linux:6::server
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-debuginfo
Red Hat:enterprise_linux:6::server
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-devel
Red Hat:enterprise_linux:6::server
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached
Red Hat:enterprise_linux:6::workstation
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-debuginfo
Red Hat:enterprise_linux:6::workstation
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
memcached-devel
Red Hat:enterprise_linux:6::workstation
From an advisory covering 2 CVEs
before 0:1.4.4-3.el6_8.1
0:1.4.4-3.el6_8.1
rhmap-fh-openshift-templates
Red Hat:mobile_application_platform:4.2
From an advisory covering 2 CVEs
before 0:1.0.0-5.el7
0:1.0.0-5.el7
memcached
SUSE:OpenStack Cloud 7
From an advisory covering 9 CVEs
before 1.4.39-3.3.2
1.4.39-3.3.2
memcached
SUSE:Enterprise Storage 4
From an advisory covering 9 CVEs
before 1.4.39-3.3.2
1.4.39-3.3.2
memcached
SUSE:OpenStack Cloud 6
From an advisory covering 9 CVEs
before 1.4.39-3.3.1
1.4.39-3.3.1
memcached
Ubuntu:14.04:LTS
before 1.4.14-0ubuntu9.1, plus listed versions
1.4.14-0ubuntu41.4.14-0ubuntu81.4.14-0ubuntu9
1.4.14-0ubuntu9.1
memcached
Ubuntu:16.04:LTS
before 1.4.25-2ubuntu1.2, plus listed versions
1.4.24-2ubuntu11.4.25-1ubuntu21.4.25-2ubuntu1
1.4.25-2ubuntu1.2
memcached
Ubuntu:14.04:LTS
From an advisory covering 3 CVEs
before 1.4.14-0ubuntu9.1, plus listed versions
1.4.14-0ubuntu41.4.14-0ubuntu81.4.14-0ubuntu9
1.4.14-0ubuntu9.1
memcached
Ubuntu:16.04:LTS
From an advisory covering 3 CVEs
before 1.4.25-2ubuntu1.2, plus listed versions
1.4.24-2ubuntu11.4.25-1ubuntu21.4.25-2ubuntu1
1.4.25-2ubuntu1.2
memcached
openSUSE:Tumbleweed
From an advisory covering 9 CVEs
before 1.4.33-1.1
1.4.33-1.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-8704 is a critical vulnerability (CVSS 9.8) in Memcached, published November 2, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 23.2%, the 97th percentile. Fixed in memcached 1.4.33-r0.

References

Show 57 moreShow less
MoveEnter Open