PHP up to 7.4.32/8.0.24/8.2.11 GD Extension imageloadfont buffer size
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.00 |
Summary
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.
Details
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
Product
Type
Name
Version
- 7.4.0
- 7.4.1
- 7.4.2
- 7.4.3
- 7.4.4
- 7.4.5
- 7.4.6
- 7.4.7
- 7.4.8
- 7.4.9
- 7.4.10
- 7.4.11
- 7.4.12
- 7.4.13
- 7.4.14
- 7.4.15
- 7.4.16
- 7.4.17
- 7.4.18
- 7.4.19
- 7.4.20
- 7.4.21
- 7.4.22
- 7.4.23
- 7.4.24
- 7.4.25
- 7.4.26
- 7.4.27
- 7.4.28
- 7.4.29
- 7.4.30
- 7.4.31
- 7.4.32
- 8.0.0
- 8.0.1
- 8.0.2
- 8.0.3
- 8.0.4
- 8.0.5
- 8.0.6
- 8.0.7
- 8.0.8
- 8.0.9
- 8.0.10
- 8.0.11
- 8.0.12
- 8.0.13
- 8.0.14
- 8.0.15
- 8.0.16
- 8.0.17
- 8.0.18
- 8.0.19
- 8.0.20
- 8.0.21
- 8.0.22
- 8.0.23
- 8.0.24
- 8.2.0
- 8.2.1
- 8.2.2
- 8.2.3
- 8.2.4
- 8.2.5
- 8.2.6
- 8.2.7
- 8.2.8
- 8.2.9
- 8.2.10
- 8.2.11
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB 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): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Buffer sizeCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 211146
Nessus Name: Fedora 37 : php (2022-f204e1d0ed)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 7.4.33/8.0.25/8.2.12
Timeline
05/25/2022 🔍11/14/2022 🔍
11/14/2022 🔍
01/04/2026 🔍
Sources
Product: php.orgAdvisory: 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
Entry
Created: 11/14/2022 14:35Updated: 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.
No comments yet. Languages: en.
Please log in to comment.