CVE-2022-31625

Advisory lineage Upstream: 0 Downstream: 23
Modified
Published: 16 Jun 2022, 05:45
Last modified:16 Sept 2024, 18:35

Vulnerability Summary

Overall Risk (default)
medium
43/100
CVSS Score
8.1 HIGH
v3.1 (cve.org)
EPSS Score
1.48% LOW
1% probability +0.71%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

16 Jun 2022, 05:45
Published
Vulnerability first disclosed
16 Sept 2024, 18:35
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 using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.

CVSS Metrics

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

EPSS Trends

Current EPSS score: 1.48% Percentile: 81%

Techniques & Countermeasures

  • CWE-763Release of Invalid Pointer or Reference

    The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.

  • CWE-590Free of Memory not on the Heap

    The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc().

  • CWE-824Access of Uninitialized Pointer

    The product accesses or uses a pointer that has not been initialized.

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)