PHP 8.0.x < 8.0.20 Multiple Vulnerabilities

high Web App Scanning Plugin ID 113252

Synopsis

PHP 8.0.x < 8.0.20 Multiple Vulnerabilities

Description

According to its self-reported version number, the version of PHP installed on the remote host is 7.4.x prior to 7.4.30, 8.0.x prior to 8.0.20, or 8.1.x prior to 8.1.7. It is, therefore, affected by multiple vulnerabilities:

- Uninitialized array in pg_query_params(). (CVE-2022-31625)

- mysqlnd/pdo password buffer overflow. (CVE-2022-31626)

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to PHP version 8.0.20 or later.

See Also

https://www.php.net/ChangeLog-8.php#8.0.20

Plugin Details

Severity: High

ID: 113252

Type: remote

Published: 6/10/2022

Updated: 3/14/2023

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2022-31625

CVSS v3

Risk Factor: High

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2022-31626

Vulnerability Information

CPE: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/9/2022

Vulnerability Publication Date: 6/9/2022

Reference Information

CVE: CVE-2022-31625, CVE-2022-31626