#VU70788 Integer overflow in PHP - CVE-2022-31631


Vulnerability identifier: #VU70788

Vulnerability risk: Medium

CVSSv4.0: 6.9 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-31631

CWE-ID: CWE-190

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PHP
Universal components / Libraries / Scripting languages

Vendor: PHP Group

Description

The vulnerability allows a remote attacker to bypass implemented security restrictions.

The vulnerability exists due to integer overflow when processing untrusted input within the PDO::quote() in PDO_SQLite. A remote attacker can pass a specially crafted input to the application that after being processed by the affected PDO::quote() method will return a quoted string, which can result in a SQL injection.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PHP: 8.0.0 - 8.0.26, 8.1.0 - 8.1.13, 8.2.0


External links
https://www.php.net/ChangeLog-8.php#8.2.1
https://www.php.net/ChangeLog-8.php#8.1.14
https://www.php.net/ChangeLog-8.php#8.0.27
https://bugs.php.net/bug.php?id=81740


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability