CVE-2022-31626

Advisory lineage Upstream: 0 Downstream: 23
Modified
Published: 16 Jun 2022, 05:45
Last modified:17 Sept 2024, 03:38

Vulnerability Summary

Overall Risk (default)
medium
47/100
CVSS Score
8.8 HIGH
v3.1 (nvd)
EPSS Score
10.24% MEDIUM
10% probability -1.44%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

16 Jun 2022, 05:45
Published
Vulnerability first disclosed
17 Sept 2024, 03:38
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • v3.1HIGHScore: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • v2.0MEDIUMScore: 6AV:N/AC:M/Au:S/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 10.24% Percentile: 93%

Techniques & Countermeasures

  • CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

    The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.

Affected Systems

  • debiandebian_linux

    10.0 | 11.0

  • UnknownPHP

    ≥ 7.4.X, < 7.4.30 | ≥ 8.0.X, < 8.0.20 | ≥ 8.1.X, < 8.1.7

  • UnknownPHP

    ≥ 7.4.0, < 7.4.30 | ≥ 8.0.0, < 8.0.20 | ≥ 8.1.0, < 8.1.7

References (7)