CVE-2016-5766
Publication date 24 June 2016
Last updated 25 August 2025
Ubuntu priority
Cvss 3 Severity Score
Description
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8, allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via crafted chunk dimensions in an image.
Status
| Package | Ubuntu Release | Status | 
|---|---|---|
| libgd2 | 16.04 LTS xenial | 
                              
                               
                                Fixed 2.1.1-4ubuntu0.16.04.2 
                                
                               
                             |      
                          
                            
                          
                        
                      
| 14.04 LTS trusty | 
                              
                               
                                Fixed 2.1.0-3ubuntu0.2 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| php5 | 16.04 LTS xenial | Not in release | 
| 14.04 LTS trusty | 
                              
                               
                                Not affected 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| php7.0 | 16.04 LTS xenial | 
                              
                               
                                Not affected 
                                
                               
                             |      
                          
                            
                          
                        
                      
| 14.04 LTS trusty | Not in release | |
Notes
Patch details
| Package | Patch details | 
|---|---|
| libgd2 | |
| php7.0 | 
Severity score breakdown
| Parameter | Value | 
|---|---|
| Base score | 
                      
                      
                         | 
                  
| Attack vector | Network | 
| Attack complexity | Low | 
| Privileges required | None | 
| User interaction | Required | 
| Scope | Unchanged | 
| Confidentiality | High | 
| Integrity impact | High | 
| Availability impact | High | 
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | 
References
Related Ubuntu Security Notices (USN)
- USN-3030-1
 - GD library vulnerabilities
 - 11 July 2016