CVE & CISA-KEV Catalog

CVE-2022-31630

MEDIUMEPSS 82th pctl
6.5
CVSS v3
NVD

Description

In PHP versions prior to 7.4.33, 8.0.25 and 8.1.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information.

How to fix

Remediation Available
php8.1Amazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-bcmathAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-bcmath-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-cliAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-cli-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-commonAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-common-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-dbaAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-dba-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-dbgAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-dbg-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-debugsourceAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-develAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-embeddedAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-embedded-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-enchantAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-enchant-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-ffiAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-ffi-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-fpmAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-fpm-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-gdAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-gd-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-gmpAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-gmp-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-intlAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-intl-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-ldapAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
php8.1-ldap-debuginfoAmazon
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2
Fixed in:0:8.1.14-1.amzn2023.0.2

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

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 ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityLow

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

Exploit Intelligence

2.28%probability of exploitation in 30 days
82ndpercentile

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

References

Related Vulnerabilities

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

CVESeverityCVSSEPSSExploitedFix
CVE-2023-36824High7.477%-Fix
CVE-2020-8450High7.372%-Fix
CVE-2026-42945Critical8.168%-Fix
CVE-2020-6113High7.865%--
CVE-2020-6116High7.828%--
CVE-2005-3120Critical9.823%-Fix

Common questions

How do I fix CVE-2022-31630?

Published advisories record a fix for 223 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-31630 being actively exploited?

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

How severe is CVE-2022-31630?

CVE-2022-31630 has a CVSS v3 base score of 6.5, rated medium. 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-31630 affect?

Published advisories record a fix for php8.1 (Amazon), php8.1-bcmath (Amazon), php8.1-bcmath-debuginfo (Amazon), php8.1-cli (Amazon), and 219 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-31630
CVE-2022-31630 severity badge

Markdown

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

HTML

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

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart 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 2026-06-17.