CVE & CISA-KEV Catalog

CVE-2022-31627

HIGHEPSS 79th pctl
7.7
CVSS v3
NVD

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.

How to fix

Remediation Available
libapache2-mod-php8.1Ubuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1
php8.1Ubuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1
php8.1-cgiUbuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1
php8.1-cliUbuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1
php8.1-fpmUbuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1
php8.1-mysqlUbuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1
php8.1-pgsqlUbuntu
Fixed in:8.1.2-1ubuntu2.2USN-5530-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityLow

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L

Exploit Intelligence

2.02%probability of exploitation in 30 days
79thpercentile

Elevated risk: more likely to be exploited than 79% of all known CVEs.

References

Related Vulnerabilities

Other CWE-590 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-6016Critical9.85.8%-Fix
CVE-2022-31625High8.13.4%-Fix
CVE-2021-42377Critical9.83.4%-Fix
CVE-2023-25565High7.51.1%-Fix
CVE-2025-32911Critical9.00.9%-Fix
CVE-2023-42459High8.60.8%-Fix

Common questions

How do I fix CVE-2022-31627?

Published advisories record a fix for 7 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-31627 being actively exploited?

Not that we know of. CVE-2022-31627 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.0% is the estimated probability that it will be exploited in the next 30 days. That is higher than 79% of all scored CVEs.

How severe is CVE-2022-31627?

CVE-2022-31627 has a CVSS v3 base score of 7.7, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-31627 affect?

Published advisories record a fix for libapache2-mod-php8.1 (Ubuntu), php8.1 (Ubuntu), php8.1-cgi (Ubuntu), php8.1-cli (Ubuntu), and 3 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-31627
CVE-2022-31627 severity badge

Markdown

[![CVE-2022-31627](https://tridentstack.com/cve/badge/CVE-2022-31627.svg)](https://tridentstack.com/cve/CVE-2022-31627)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31627"><img src="https://tridentstack.com/cve/badge/CVE-2022-31627.svg" alt="CVE-2022-31627"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.