Vulnerability Name:

CVE-2022-31625 (CCN-229122)

Assigned:2022-05-16
Published:2022-05-16
Updated:2023-02-23
Summary:In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.
CVSS v3 Severity:8.1 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
7.1 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.1 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
7.1 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.0 High (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H)
6.1 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): High
CVSS v2 Severity:6.8 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
7.6 High (CCN CVSS v2 Vector: AV:N/AC:H/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-824
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2022-31625

Source: CCN
Type: PHP Sec Bug #81720
Uninitialized array in pg_query_params() leading to RCE

Source: security@php.net
Type: Exploit, Issue Tracking, Mailing List, Patch, Vendor Advisory
security@php.net

Source: XF
Type: UNKNOWN
php-cve202231625-code-exec(229122)

Source: security@php.net
Type: Mailing List, Third Party Advisory
security@php.net

Source: security@php.net
Type: Mailing List, Third Party Advisory
security@php.net

Source: security@php.net
Type: Mailing List, Third Party Advisory
security@php.net

Source: security@php.net
Type: Third Party Advisory
security@php.net

Source: security@php.net
Type: Third Party Advisory
security@php.net

Source: security@php.net
Type: Third Party Advisory
security@php.net

Source: CCN
Type: PHP Web site
PHP

Vulnerable Configuration:Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*
  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*
  • Configuration RedHat 3:
  • cpe:/a:redhat:enterprise_linux:9:*:*:*:*:*:*:*
  • Configuration RedHat 4:
  • cpe:/a:redhat:enterprise_linux:9::appstream:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:8075
    P
    apache2-mod_php7-7.4.33-150400.4.22.1 on GA media (Moderate)
    2023-06-12
    oval:com.redhat.rhsa:def:20228197
    P
    RHSA-2022:8197: php security, bug fix, and enhancement update (Moderate)
    2022-11-15
    oval:com.redhat.rhsa:def:20227624
    P
    RHSA-2022:7624: php:8.0 security, bug fix, and enhancement update (Moderate)
    2022-11-08
    oval:com.redhat.rhsa:def:20226158
    P
    RHSA-2022:6158: php:7.4 security update (Moderate)
    2022-08-24
    oval:org.opensuse.security:def:95409
    P
    Security update for php8 (Important)
    2022-07-06
    oval:org.opensuse.security:def:547
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:3776
    P
    Security update for php8 (Important)
    2022-07-06
    oval:org.opensuse.security:def:555
    P
    Security update for php8 (Important)
    2022-07-06
    oval:org.opensuse.security:def:95347
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:3717
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:95369
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:3739
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:544
    P
    Security update for php7 (Important)
    2022-07-05
    oval:org.opensuse.security:def:119427
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:1526
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:118742
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:119612
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:1720
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:118932
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:538
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:119237
    P
    Security update for php7 (Important)
    2022-06-24
    oval:org.opensuse.security:def:5284
    P
    Security update for php72 (Important)
    2022-06-24
    oval:org.opensuse.security:def:5280
    P
    Security update for php74 (Important)
    2022-06-23
    BACK