8.1

CVE-2022-31625: Freeing unallocated memory in php_pgsql_free_params()

Modified
AliasesRHSA-2022:6158UBUNTU-CVE-2022-31625USN-5479-3
Published 16-06-2022Last modified 16-09-2024

Vulnerability summary

CVE-2022-31625 is a high (CVSS 8.1) Free of Memory not on the Heap vulnerability in debian debian_linux. EPSS estimates a 3.79% chance of exploitation in the next 30 days, higher than 89.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
3.79%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 19 · Related 13

Timeline

  1. 16-06-2022
    PublishedVulnerability first disclosed.
  2. 16-09-2024
    Last modifiedVulnerability 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

7 scores · 6 sources · 2 versions

EPSS trend

Probability

3.79%

Chance of exploitation in the next 30 days

Percentile

90%

Versus all other CVEs

30-day change

No change 0.00 pp

From 3.79% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (bugs.php.net)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat75 products
  • apcu-panel< 0:5.1.18-1.module+el8.3.0+6678+b09f589e
  • libzip< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
  • libzip-debuginfo< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
  • libzip-debugsource< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
  • libzip-devel< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
Ubuntu5 products
  • php5All versions (No fix recorded)
  • php7.0< 7.0.33-0ubuntu0.16.04.16+esm4
  • php7.2< 7.2.24-0ubuntu0.18.04.13 | < 7.2.24-0ubuntu0.18.04.12
  • php7.4< 7.4.3-4ubuntu2.12
  • php8.1< 8.1.2-1ubuntu2.1
Alpine3 products
  • php7< 7.4.32-r0
  • php8< 8.0.24-r0 | < 8.0.25-r0
  • php81< 8.1.7-r0 | < 8.1.6-r2
Debian2 products
Php1 product
  • php≥ 7.4.0, < 7.4.30 | ≥ 8.0.0, < 8.0.20 | ≥ 8.1.0, < 8.1.7
Php group1 product
  • php≥ 7.4.X, < 7.4.30 | ≥ 8.0.X, < 8.0.20 | ≥ 8.1.X, < 8.1.7

6 vendors · 87 products

References

20 links
Show all 20 references