title: mysqlnd/pdo password buffer overflow
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 pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.
problem types: CWE-120 Buffer Overflow
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:L/UI:N/S:U/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: HIGH
privilegesRequired: LOW
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
baseScore: 7.5
baseSeverity: HIGH
]