9.8

CVE-2022-31627: Heap buffer overflow in finfo_buffer

Modified
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 82.6% 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
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
2.14%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

83%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.14% on 04-11-2026

04-11-202604-12-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.

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