Vulnerability database / CVE-2022-31625
CVE-2022-31625
HIGH 8.1 CVSS 3.1 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.
Published 16 Jun 2022
Last modified 17 Jun 2026 Assigned by security@php.net NVD status Modified Weakness
CWE-590 CWE-763 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
security@php.net (Secondary)
CVSS 3.1
HIGH 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 6.8
AV:N/AC:M/Au:N/C:P/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.4.0, < 7.4.30
7.4.30 NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.0.0, < 8.0.20
8.0.20 NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.1.0, < 8.1.7
8.1.7 NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
References
History
25 Nov 2026 20:34 UTC · NVD: first stored (published 16 Jun 2022)