Buffer Overflow Affecting php/php-src package, versions [,8.0.27)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PHPPHPSRC-3227327
  • published8 Jan 2023
  • disclosed5 Jan 2023
  • creditUnknown

Introduced: 5 Jan 2023

CVE-2022-31631  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade php/php-src to version 8.0.27 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via PDO::quote() which returns an unquoted string. With the implementation of sqlite3_snprintf(), it is possible to force the function to return a single apostrophe if the function is called on user-supplied input without any length restrictions in place.

CVSS Scores

version 3.1