Buffer Overflow Affecting php package, versions [,8.0.27)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.5% (66th percentile)

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 Learn

Learn about Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PHP-9673803
  • 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 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 Base Scores

version 3.1