title: Freeing unallocated memory in php_pgsql_free_params()
description: 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.
problem types: CWE-590 Free of Memory not on the Heap
affected:
{
vendor: PHP Group
product: PHP
versions:
version: 7.4.X, status: affected, lessThan: 7.4.30, versionType: custom
version: 8.0.X, status: affected, lessThan: 8.0.20, versionType: custom
version: 8.1.X, status: affected, lessThan: 8.1.7, versionType: custom
}
metrics:
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: HIGH
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
baseScore: 8.1
baseSeverity: HIGH
]