CVE-2022-31631
Publication date 5 January 2023
Last updated 18 August 2025
Ubuntu priority
Cvss 3 Severity Score
Description
In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to SQL injection vulnerabilities.
Status
| Package | Ubuntu Release | Status | 
|---|---|---|
| php5 | ||
| 22.04 LTS jammy | Not in release | |
| 20.04 LTS focal | Not in release | |
| 18.04 LTS bionic | Not in release | |
| 16.04 LTS xenial | Not in release | |
| 14.04 LTS trusty | 
                              
                               
                                Vulnerable 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| php7.0 | ||
| 22.04 LTS jammy | Not in release | |
| 20.04 LTS focal | Not in release | |
| 18.04 LTS bionic | Not in release | |
| 16.04 LTS xenial | 
                              
                               
                                Fixed 7.0.33-0ubuntu0.16.04.16+esm5 
                                
                                   
                             |      
                          
                            
                          
                        
                      |
| 14.04 LTS trusty | Not in release | |
| php7.2 | ||
| 22.04 LTS jammy | Not in release | |
| 20.04 LTS focal | Not in release | |
| 18.04 LTS bionic | 
                              
                               
                                Fixed 7.2.24-0ubuntu0.18.04.16 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| 16.04 LTS xenial | Not in release | |
| 14.04 LTS trusty | Not in release | |
| php7.4 | ||
| 22.04 LTS jammy | Not in release | |
| 20.04 LTS focal | 
                              
                               
                                Fixed 7.4.3-4ubuntu2.17 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| 18.04 LTS bionic | Not in release | |
| 16.04 LTS xenial | Not in release | |
| 14.04 LTS trusty | Not in release | |
| php8.1 | 25.10 questing | Not in release | 
| 25.04 plucky | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy | 
                              
                               
                                Fixed 8.1.2-1ubuntu2.10 
                                
                               
                             |      
                          
                            
                          
                        
                      |
| 20.04 LTS focal | Not in release | |
| 18.04 LTS bionic | Not in release | |
| 16.04 LTS xenial | Not in release | |
| 14.04 LTS trusty | Not in release | 
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialNotes
Severity score breakdown
| Parameter | Value | 
|---|---|
| Base score | 
                      
                      
                         | 
                  
| Attack vector | Network | 
| Attack complexity | Low | 
| Privileges required | None | 
| User interaction | None | 
| Scope | Unchanged | 
| Confidentiality | High | 
| Integrity impact | High | 
| Availability impact | None | 
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | 
References
Related Ubuntu Security Notices (USN)
- USN-5818-1
 - PHP vulnerability
 - 23 January 2023
 - USN-5905-1
 - PHP vulnerabilities
 - 2 March 2023