9.8

CVE-2022-31627: php_group php Free of Memory not on the Heap

CVSS: 9.8v3.1CriticalModified
AliasesUBUNTU-CVE-2022-31627USN-5530-1openSUSE-SU-2024:12218-1
Published 28-07-2022Last modified 16-09-2024

Vulnerability summary

CVE-2022-31627 is a critical (CVSS 9.8) Free of Memory not on the Heap vulnerability in php_group php. EPSS estimates a 2.14% chance of exploitation in the next 30 days, higher than 81.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
2.14%
0%100%
Low · +0.10 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 28-07-2022
    PublishedVulnerability first disclosed.
  2. 16-09-2024
    Last modifiedVulnerability information updated.

Description

In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

2.14%

Chance of exploitation in the next 30 days

Percentile

82%

Versus all other CVEs

30-day change

+0.10 pp

From 2.04% on 19-09-2026

19-09-202619-10-2026
EPSS score
2.14%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (bugs.php.net)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Opensuse1 product
  • php8&distro=openSUSE Tumbleweed< 8.1.8-1.1
Php1 product
  • php≥ 8.1.0, < 8.1.8
Php_group1 product
  • php≥ 8.1.X, < 8.1.8
Ubuntu1 product
  • php8.1< 8.1.2-1ubuntu2.2

4 vendors · 4 products

References

8 links