CVE-2017-9951
Publication date 17 July 2017
Last updated 25 August 2025
Ubuntu priority
Cvss 3 Severity Score
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.
From the Ubuntu Security Team
Daniel Shapira discovered an integer overflow issue in Memcached. A remote attacker could use this to cause a denial of service (daemon crash).
Status
| Package | Ubuntu Release | Status | 
|---|---|---|
| memcached | ||
| 16.04 LTS xenial | 
                              
                               
                                Fixed 1.4.25-2ubuntu1.3 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| 14.04 LTS trusty | 
                              
                               
                                Fixed 1.4.14-0ubuntu9.2 
                                
                               
                             |      
                          
                            
                          
                        
                      
Severity score breakdown
| Parameter | Value | 
|---|---|
| Base score | 
                      
                      
                         | 
                  
| Attack vector | Network | 
| Attack complexity | Low | 
| Privileges required | None | 
| User interaction | None | 
| Scope | Unchanged | 
| Confidentiality | None | 
| Integrity impact | None | 
| Availability impact | High | 
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | 
References
Related Ubuntu Security Notices (USN)
- USN-3588-1
 - Memcached vulnerabilities
 - 5 March 2018
 
Other 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
 - https://www.cve.org/CVERecord?id=CVE-2017-9951