CVE-2017-9951
published 2017-07-17CVE-2017-9951: 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…
PriorityP337high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
4.17%
89.8th percentile
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
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | memcached | < memcached 1.5.0-1 (bookworm) | memcached 1.5.0-1 (bookworm) |
| memcached | memcached | <= 1.4.38 | — |
| memcached | memcached | >= 0 < 1.5.0-1 | 1.5.0-1 |
| memcached | memcached | >= 0 < 1.5.0-1 | 1.5.0-1 |
| memcached | memcached | >= 0 < 1.5.0-1 | 1.5.0-1 |
| memcached | memcached | >= 0 < 1.5.0-1 | 1.5.0-1 |
| memcached | memcached | >= 0 < 1.4.14-0ubuntu9.2 | 1.4.14-0ubuntu9.2 |
| memcached | memcached | >= 0 < 1.4.25-2ubuntu1.3 | 1.4.25-2ubuntu1.3 |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Memcached vulnerabilities
vendor_ubuntu·2018-03-05·CVSS 7.5
CVE-2017-9951 [HIGH] Memcached vulnerabilities
Title: Memcached vulnerabilities
Summary: Several security issues were fixed in Memcached.
Daniel Shapira discovered an integer overflow issue in Memcached. A remote
attacker could use this to cause a denial of service (daemon crash).
(CVE-2017-9951)
It was discovered that Memcached listened to UDP by default. A remote
attacker could use this as part of a distributed denial of service attack.
(CVE-2018-1000115)
Instructions: In general, a standard system update will make all the necessary changes.
Please note that after applying this update, Memcached will no longer
listen to UDP by default. If UDP service is desired, please add
'-U 11211' to /etc/memcached.conf and restart the memcached service.
Red Hat
memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
vendor_redhat·2017-07-17·CVSS 9.8
CVE-2017-9951 [CRITICAL] CWE-119 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
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.
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/.
Mitigation: This flaw is in the memcached bi
Debian
CVE-2017-9951: memcached - The try_read_command function in memcached.c in memcached before 1.4.39 allows r...
vendor_debian·2017·CVSS 9.8
CVE-2017-9951 [CRITICAL] CVE-2017-9951: memcached - The try_read_command function in memcached.c in memcached before 1.4.39 allows r...
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.
Scope: local
bookworm: resolved (fixed in 1.5.0-1)
bullseye: resolved (fixed in 1.5.0-1)
forky: resolved (fixed in 1.5.0-1)
sid: resolved (fixed in 1.5.0-1)
trixie: resolved (fixed in 1.5.0-1)
GHSA
GHSA-vpcm-5gwm-79h2: The try_read_command function in memcached
ghsa_unreviewed·2022-05-13·CVSS 9.8
CVE-2017-9951 [CRITICAL] GHSA-vpcm-5gwm-79h2: The try_read_command function in memcached
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.
OSV
memcached vulnerabilities
osv·2018-03-05·CVSS 7.5
CVE-2017-9951 [HIGH] memcached vulnerabilities
memcached vulnerabilities
Daniel Shapira discovered an integer overflow issue in Memcached. A remote
attacker could use this to cause a denial of service (daemon crash).
(CVE-2017-9951)
It was discovered that Memcached listened to UDP by default. A remote
attacker could use this as part of a distributed denial of service attack.
(CVE-2018-1000115)
OSV
CVE-2017-9951: The try_read_command function in memcached
osv·2017-07-17·CVSS 9.8
CVE-2017-9951 [CRITICAL] CVE-2017-9951: The try_read_command function in memcached
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.
No detection rules found.
No public exploits indexed.
Bugzilla
Fix CVE-2017-9951, multiple bugfixes, performance enhancements
bugzilla·2018-06-25·CVSS 7.5
CVE-2017-9951 [HIGH] Fix CVE-2017-9951, multiple bugfixes, performance enhancements
Fix CVE-2017-9951, multiple bugfixes, performance enhancements
Multiple bug fixes and performance improvements are available in recent versions of memcached. Memcached included with rhel-7-server-rpms is version 1.4.15 and the release notes indicate it has not been updated since November 2016:
* Mon Nov 07 2016 Miroslav Lichvar - 0:1.4.15-10.el7_3.1
CVE-2017-9951 affects all versions prior to 1.4.39.
Recent versions also have better systemd integration and security improvements.
Here are a few items from the changelogs between 1.4.15 (version shipped in rhel-7-server-rpms) and 1.5.8 (released one month ago)
fix rare partial deadlock during hash table expansion
extstore: fix ref leak when using binary protocol with TOUCH,GAT,GATK
systemd instancing support & rpm build improvements
remo
Bugzilla
CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
bugzilla·2017-07-17·CVSS 9.8
CVE-2017-9951 [CRITICAL] CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
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.
References:
https://www.twistlock.com/2017/07/13/cve-2017-9951-heap-overflow-memcached-server-1-4-38-twistlock-vulnerability-report/
https://github.com/memcached/memcached/wiki/ReleaseNotes1439
https://groups.google.com/forum/message/raw?msg=memcached/ubGWrkmrr4E/nrm1SeVJAQAJ
Discussion:
Created memcached tracking bug
Bugzilla
CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705) [fedora-all]
bugzilla·2017-07-17·CVSS 9.8
CVE-2017-9951 [CRITICAL] CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705) [fedora-all]
CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705) [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
http://www.securityfocus.com/bid/99874https://github.com/memcached/memcached/wiki/ReleaseNotes1439https://groups.google.com/forum/message/raw?msg=memcached/ubGWrkmrr4E/nrm1SeVJAQAJhttps://usn.ubuntu.com/3588-1/https://www.debian.org/security/2018/dsa-4218https://www.twistlock.com/2017/07/13/cve-2017-9951-heap-overflow-memcached-server-1-4-38-twistlock-vulnerability-report/http://www.securityfocus.com/bid/99874https://github.com/memcached/memcached/wiki/ReleaseNotes1439https://groups.google.com/forum/message/raw?msg=memcached/ubGWrkmrr4E/nrm1SeVJAQAJhttps://usn.ubuntu.com/3588-1/https://www.debian.org/security/2018/dsa-4218https://www.twistlock.com/2017/07/13/cve-2017-9951-heap-overflow-memcached-server-1-4-38-twistlock-vulnerability-report/
2017-07-17
Published