PHP up to 7.4.32/8.0.24/8.2.11 GD Extension imageloadfont buffer size

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.3$0-$5k0.00

Summaryinfo

A vulnerability was found in PHP up to 7.4.32/8.0.24/8.2.11. It has been classified as problematic. The impacted element is the function imageloadfont of the component GD Extension. Performing a manipulation results in buffer size. This vulnerability is identified as CVE-2022-31630. The attack can be initiated remotely. There is not any exploit available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability classified as problematic has been found in PHP up to 7.4.32/8.0.24/8.2.11 (Programming Language Software). This affects the function imageloadfont of the component GD Extension. The manipulation with an unknown input leads to a buffer size vulnerability. CWE is classifying the issue as CWE-131. The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

In PHP versions prior to 7.4.33, 8.0.25 and 8.2.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.

The weakness was released 11/14/2022 as 81739. The advisory is shared at bugs.php.net. This vulnerability is uniquely identified as CVE-2022-31630 since 05/25/2022. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 01/04/2026).

The vulnerability scanner Nessus provides a plugin with the ID 211146 (Fedora 37 : php (2022-f204e1d0ed)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 7.4.33, 8.0.25 or 8.2.12 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (211146) and CERT Bund (WID-SEC-2022-1934). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Affected

  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • SUSE Linux
  • Oracle Linux
  • Gentoo Linux
  • Open Source PHP
  • RESF Rocky Linux

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.4
VulDB Meta Temp Score: 6.3

VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.1
NVD Vector: 🔍

CNA Base Score: 6.5
CNA Vector (PHP Group): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Buffer size
CWE: CWE-131 / CWE-120 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 211146
Nessus Name: Fedora 37 : php (2022-f204e1d0ed)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PHP 7.4.33/8.0.25/8.2.12

Timelineinfo

05/25/2022 🔍
11/14/2022 +173 days 🔍
11/14/2022 +0 days 🔍
01/04/2026 +1147 days 🔍

Sourcesinfo

Product: php.org

Advisory: 81739
Status: Confirmed

CVE: CVE-2022-31630 (🔍)
GCVE (CVE): GCVE-0-2022-31630
GCVE (VulDB): GCVE-100-213561
CERT Bund: WID-SEC-2022-1934 - PHP: Schwachstelle ermöglicht Offenlegung von Informationen

Entryinfo

Created: 11/14/2022 14:35
Updated: 01/04/2026 03:49
Changes: 11/14/2022 14:35 (52), 12/17/2022 16:04 (12), 11/17/2024 05:22 (16), 01/04/2026 03:49 (7)
Complete: 🔍
Cache ID: 216:D56:103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!