CVE-2025-8715
Publication date 14 August 2025
Last updated 15 September 2025
Ubuntu priority
Cvss 3 Severity Score
Description
Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands inside a purpose-crafted object name. The same attacks can achieve SQL injection as a superuser of the restore target server. pg_dumpall, pg_restore, and pg_upgrade are also affected. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. Versions before 11.20 are unaffected. CVE-2012-0868 had fixed this class of problem, but version 11.20 reintroduced it.
Status
| Package | Ubuntu Release | Status | 
|---|---|---|
| postgresql-17 | 25.10 questing | 
                              
                               
                                Fixed 17.6-1 
                                
                               
                             |      
                          
                            
                          
                        
                      
| 25.04 plucky | 
                              
                               
                                Fixed 17.6-0ubuntu0.25.04.1 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | Not in release | |
| postgresql-16 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | 
                              
                               
                                Fixed 16.10-0ubuntu0.24.04.1 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| 22.04 LTS jammy | Not in release | |
| postgresql-14 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | 
                              
                               
                                Fixed 14.19-0ubuntu0.22.04.1 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| postgresql-12 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | Not in release | |
| 20.04 LTS focal | 
                              
                               
                                Needs evaluation 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| postgresql-10 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | Not in release | |
| 18.04 LTS bionic | 
                              
                               
                                Needs evaluation 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| postgresql-9.5 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | Not in release | |
| 16.04 LTS xenial | 
                              
                               
                                Needs evaluation 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| postgresql-9.3 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | Not in release | |
| 14.04 LTS trusty | 
                              
                               
                                Vulnerable, fix deferred 
                                
                               
                             |      
                          
                            
                          
                        
                      
Notes
leosilva
PostgreSQL 9.3 is end of life upstream, and no updates are are available. Marking as deferred in -esm-main releases.
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.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | 
References
Related Ubuntu Security Notices (USN)
- USN-7741-1
 - PostgreSQL vulnerabilities
 - 8 September 2025