memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
Published Jul 17, 2017
7.5
HIGHCVSS 3.0
EPSS 4.17%
Description
The try_read_command function in memcached.c in memcached before 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. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8705.
Affected products
No data.
No data.
Red Hat Enterprise Linux 6
memcached
Will not fix
Red Hat Enterprise Linux 7
memcached
Will not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)
memcached
Will not fix
Red Hat Mobile Application Platform 4
memcached
Will not fix
Red Hat OpenStack Platform 10 (Newton)
memcached
Will not fix
Red Hat OpenStack Platform 11 (Ocata)
memcached
Will not fix
Red Hat OpenStack Platform 12 (Pike)
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 | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | memcached | Will not fix | n/a |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | memcached | Will not fix | n/a |
| Red Hat Mobile Application Platform 4 | memcached | Will not fix | n/a |
| Red Hat OpenStack Platform 10 (Newton) | memcached | Will not fix | n/a |
| Red Hat OpenStack Platform 11 (Ocata) | memcached | Will not fix | n/a |
| Red Hat OpenStack Platform 12 (Pike) | 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
Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Red Hat mitigation
This flaw is in the memcached binary protocol. If your 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:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:N/I:N/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
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (23 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.17% (0.04166) | 90.57th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.17% (0.04166) | 89.55th | v5 (v2026.06.15) |
| Jun 11, 2026 | 2.97% (0.02969) | 86.81th | v4 (v2025.03.14) |
| Dec 31, 2025 | 1.67% (0.01674) | 81.70th | v4 (v2025.03.14) |
| Nov 21, 2025 | 3.84% (0.03836) | 87.69th | v4 (v2025.03.14) |
| Nov 18, 2025 | 1.69% (0.01687) | 80.71th | v4 (v2025.03.14) |
| Jun 19, 2025 | 3.36% (0.03359) | 86.77th | v4 (v2025.03.14) |
| Mar 30, 2025 | 0.90% (0.00900) | 73.55th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.06% (0.02058) | 73.20th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.90% (0.00900) | 74.03th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.96% (0.00960) | 83.94th | v3 (v2023.03.01) |
| Apr 10, 2024 | 0.95% (0.00949) | 82.90th | v3 (v2023.03.01) |
| May 8, 2023 | 0.95% (0.00949) | 80.87th | v3 (v2023.03.01) |
| May 2, 2023 | 1.46% (0.01461) | 84.71th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.03% (0.01035) | 81.58th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.32% (0.01319) | 71.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.32% (0.01319) | 69.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.26% (0.02262) | 50.78th | v1 |
| Jan 6, 2022 | 2.26% (0.02262) | 50.28th | v1 |
| Sep 1, 2021 | 2.26% (0.02262) | 77.65th | v1 |
| Apr 14, 2021 | 2.26% (0.02262) | 0.00th | v1 |
References (10)
- http://www.securityfocus.com/bid/99874 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2017-9951 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1471970 Issue Tracking
- https://github.com/memcached/memcached/wiki/ReleaseNotes1439 x_refsource_MISCThird Party Advisory
- https://groups.google.com/forum/message/raw?msg=memcached/ubGWrkmrr4E/nrm1SeVJAQAJ x_refsource_MISCMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-9951
- https://usn.ubuntu.com/3588-1/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2017-9951
- https://www.debian.org/security/2018/dsa-4218 vendor-advisoryx_refsource_DEBIAN
- https://www.twistlock.com/2017/07/13/cve-2017-9951-heap-overflow-memcached-server-1-4-38-twistlock-vulnerability-report/ x_refsource_MISCExploitTechnical DescriptionThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/99874 | vdb-entryx_refsource_BID | |
| https://access.redhat.com/security/cve/CVE-2017-9951 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1471970 | Issue Tracking | |
| https://github.com/memcached/memcached/wiki/ReleaseNotes1439 | x_refsource_MISCThird Party Advisory | |
| https://groups.google.com/forum/message/raw?msg=memcached/ubGWrkmrr4E/nrm1SeVJAQAJ | x_refsource_MISCMailing ListThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-9951 | ||
| https://usn.ubuntu.com/3588-1/ | vendor-advisoryx_refsource_UBUNTU | |
| https://www.cve.org/CVERecord?id=CVE-2017-9951 | ||
| https://www.debian.org/security/2018/dsa-4218 | vendor-advisoryx_refsource_DEBIAN | |
| https://www.twistlock.com/2017/07/13/cve-2017-9951-heap-overflow-memcached-server-1-4-38-twistlock-vulnerability-report/ | x_refsource_MISCExploitTechnical DescriptionThird Party Advisory |
Change history (0)
No recorded changes yet.