Ubuntu CVE Tracker
UBUNTU-CVE-2022-31631
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | php5 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | php7.0 | All versions before 7.0.33-0ubuntu0.16.04.16+esm5 (fixed in 7.0.33-0ubuntu0.16.04.16+esm5) |
| Ubuntu:18.04:LTS | php7.2 | All versions before 7.2.24-0ubuntu0.18.04.16 (fixed in 7.2.24-0ubuntu0.18.04.16) |
| Ubuntu:20.04:LTS | php7.4 | All versions before 7.4.3-4ubuntu2.17 (fixed in 7.4.3-4ubuntu2.17) |
| Ubuntu:22.04:LTS | php8.1 | All versions before 8.1.2-1ubuntu2.10 (fixed in 8.1.2-1ubuntu2.10) |
References
- https://ubuntu.com/security/CVE-2022-31631
- https://github.com/php/php-src/commit/921b6813da3237a83e908998483f46ae3d8bacba
- https://github.com/php/php-src/commit/a6a80eefe0413c91acd922bc58590a4db7979af0
- https://ubuntu.com/security/notices/USN-5818-1
- https://ubuntu.com/security/notices/USN-5905-1
- https://www.cve.org/CVERecord?id=CVE-2022-31631