memcached: Server append/prepend remote code execution
Published Jan 6, 2017
9.8
CRITICALCVSS 3.0
EPSS 23.17%
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.
Affected products
-
- Version 1.4.31StatusaffectedConstraints-
- Version
No data.
Red Hat Enterprise Linux 6
memcached-0:1.4.4-3.el6_8.1
Fixed · RHSA-2016:2820
Red Hat Enterprise Linux 7
memcached-0:1.4.15-10.el7_3.1
Fixed · RHSA-2016:2819
Red Hat Mobile Application Platform 4.2
rhmap-fh-openshift-templates-0:1.0.0-5.el7
Fixed · RHSA-2017:0059
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)
memcached
Will not fix
Red Hat OpenStack Platform 10 (Newton)
memcached
Not affected
Red Hat OpenStack Platform 8 (Liberty)
memcached
Will not fix
Red Hat OpenStack Platform 9 (Mitaka)
memcached
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | memcached-0:1.4.4-3.el6_8.1 | Fixed | RHSA-2016:2820 |
| Red Hat Enterprise Linux 7 | memcached-0:1.4.15-10.el7_3.1 | Fixed | RHSA-2016:2819 |
| Red Hat Mobile Application Platform 4.2 | rhmap-fh-openshift-templates-0:1.0.0-5.el7 | Fixed | RHSA-2017:0059 |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | memcached | Will not fix | n/a |
| Red Hat OpenStack Platform 10 (Newton) | memcached | Not affected | n/a |
| Red Hat OpenStack Platform 8 (Liberty) | memcached | Will not fix | n/a |
| Red Hat OpenStack Platform 9 (Mitaka) | memcached | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
The versions of memcached as shipped with Red Hat OpenStack Platform 7, 8 and 9 are affected by this issue however will not be updated. The latest version of memcached from Red Hat Enterprise Linux 7 can safely be allowed to supersede the earlier versions provided in the Red Hat OpenStack Platform channels.
Red Hat mitigation
This flaw is in the memcached binary protocol. If you client programs only use the ASCII protocol when communicating with memcached, you can disable the binary protocol and protect against this flaw by adding "-B ascii" to OPTIONS in /etc/sysconfig/memcached.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (49 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 23.17% (0.23173) | 97.71th | v5 (v2026.06.15) |
| Jun 15, 2026 | 23.17% (0.23173) | 97.47th | v5 (v2026.06.15) |
| Jun 14, 2026 | 7.78% (0.07777) | 92.18th | v4 (v2025.03.14) |
| Mar 12, 2026 | 14.34% (0.14336) | 94.29th | v4 (v2025.03.14) |
| Mar 4, 2026 | 18.30% (0.18304) | 95.08th | v4 (v2025.03.14) |
| Mar 1, 2026 | 16.25% (0.16249) | 94.72th | v4 (v2025.03.14) |
| Feb 4, 2026 | 18.30% (0.18304) | 95.03th | v4 (v2025.03.14) |
| Feb 1, 2026 | 16.25% (0.16249) | 94.67th | v4 (v2025.03.14) |
| Jan 18, 2026 | 18.30% (0.18304) | 95.00th | v4 (v2025.03.14) |
| Jan 4, 2026 | 40.82% (0.40823) | 97.23th | v4 (v2025.03.14) |
| Jan 1, 2026 | 16.25% (0.16249) | 94.65th | v4 (v2025.03.14) |
| Dec 4, 2025 | 40.82% (0.40823) | 97.21th | v4 (v2025.03.14) |
| Dec 1, 2025 | 16.25% (0.16249) | 94.60th | v4 (v2025.03.14) |
| Nov 4, 2025 | 40.82% (0.40823) | 97.20th | v4 (v2025.03.14) |
| Nov 1, 2025 | 16.25% (0.16249) | 94.58th | v4 (v2025.03.14) |
| Oct 4, 2025 | 40.82% (0.40823) | 97.28th | v4 (v2025.03.14) |
| Oct 1, 2025 | 16.25% (0.16249) | 94.61th | v4 (v2025.03.14) |
| Sep 9, 2025 | 40.82% (0.40823) | 97.29th | v4 (v2025.03.14) |
| Sep 5, 2025 | 47.38% (0.47384) | 97.62th | v4 (v2025.03.14) |
| Sep 1, 2025 | 20.59% (0.20591) | 95.39th | v4 (v2025.03.14) |
| Aug 4, 2025 | 47.38% (0.47384) | 97.59th | v4 (v2025.03.14) |
| Aug 1, 2025 | 20.59% (0.20591) | 95.38th | v4 (v2025.03.14) |
| Jul 4, 2025 | 47.38% (0.47384) | 97.55th | v4 (v2025.03.14) |
| Jul 1, 2025 | 20.59% (0.20591) | 95.32th | v4 (v2025.03.14) |
| Jun 4, 2025 | 47.26% (0.47256) | 97.52th | v4 (v2025.03.14) |
| Jun 1, 2025 | 20.50% (0.20499) | 95.26th | v4 (v2025.03.14) |
| May 4, 2025 | 47.26% (0.47256) | 97.51th | v4 (v2025.03.14) |
| May 1, 2025 | 20.50% (0.20499) | 95.22th | v4 (v2025.03.14) |
| Apr 17, 2025 | 47.38% (0.47384) | 97.49th | v4 (v2025.03.14) |
| Apr 16, 2025 | 20.59% (0.20591) | 95.18th | v4 (v2025.03.14) |
| Apr 12, 2025 | 47.38% (0.47384) | 97.47th | v4 (v2025.03.14) |
| Apr 11, 2025 | 20.59% (0.20591) | 95.11th | v4 (v2025.03.14) |
| Apr 8, 2025 | 47.38% (0.47384) | 97.45th | v4 (v2025.03.14) |
| Apr 7, 2025 | 20.59% (0.20591) | 95.10th | v4 (v2025.03.14) |
| Apr 5, 2025 | 47.38% (0.47384) | 97.45th | v4 (v2025.03.14) |
| Apr 4, 2025 | 20.59% (0.20591) | 95.10th | v4 (v2025.03.14) |
| Apr 3, 2025 | 47.38% (0.47384) | 97.45th | v4 (v2025.03.14) |
| Apr 2, 2025 | 20.59% (0.20591) | 95.10th | v4 (v2025.03.14) |
| Mar 31, 2025 | 47.38% (0.47384) | 97.44th | v4 (v2025.03.14) |
| Mar 30, 2025 | 20.59% (0.20591) | 95.10th | v4 (v2025.03.14) |
| Mar 29, 2025 | 34.44% (0.34440) | 95.34th | v4 (v2025.03.14) |
| Mar 17, 2025 | 47.38% (0.47384) | 97.41th | v4 (v2025.03.14) |
| Dec 17, 2024 | 83.17% (0.83166) | 98.66th | v3 (v2023.03.01) |
| Feb 29, 2024 | 86.73% (0.86732) | 98.51th | v3 (v2023.03.01) |
| Jul 3, 2023 | 88.28% (0.88277) | 98.19th | v3 (v2023.03.01) |
| Mar 7, 2023 | 90.27% (0.90266) | 98.18th | v3 (v2023.03.01) |
| Mar 6, 2023 | 7.34% (0.07343) | 92.53th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.34% (0.07343) | 91.80th | v2 (v2022.01.01) |
| Feb 4, 2022 | 7.34% (0.07343) | 80.57th | v2 (v2022.01.01) |
References (12)
- http://rhn.redhat.com/errata/RHSA-2016-2819.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2016-2820.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2016/dsa-3704 vendor-advisoryx_refsource_DEBIAN
- http://www.securityfocus.com/bid/94083 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id/1037333 vdb-entryx_refsource_SECTRACK
- http://www.talosintelligence.com/reports/TALOS-2016-0219/ x_refsource_MISCExploitTechnical DescriptionThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:0059 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2016-8704 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1390510 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2016-8704
- https://security.gentoo.org/glsa/201701-12 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2016-8704
| Link | Providers | Tags |
|---|---|---|
| http://rhn.redhat.com/errata/RHSA-2016-2819.html | vendor-advisoryx_refsource_REDHAT | |
| http://rhn.redhat.com/errata/RHSA-2016-2820.html | vendor-advisoryx_refsource_REDHAT | |
| http://www.debian.org/security/2016/dsa-3704 | vendor-advisoryx_refsource_DEBIAN | |
| http://www.securityfocus.com/bid/94083 | vdb-entryx_refsource_BID | |
| http://www.securitytracker.com/id/1037333 | vdb-entryx_refsource_SECTRACK | |
| http://www.talosintelligence.com/reports/TALOS-2016-0219/ | x_refsource_MISCExploitTechnical DescriptionThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2017:0059 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2016-8704 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1390510 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-8704 | ||
| https://security.gentoo.org/glsa/201701-12 | vendor-advisoryx_refsource_GENTOO | |
| https://www.cve.org/CVERecord?id=CVE-2016-8704 |
Change history (0)
No recorded changes yet.