CVE-2022-31630 Details
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.
A vulnerability allowing out-of-bounds read has been identified in the PHP GD extension, affecting PHP versions prior to 7.4.33, 8.0.25, and 8.1.12. The issue arises in the imageloadfont() function, where insufficient input validation allows the use of specially crafted font files. When these fonts are accessed using the imagechar() function, the vulnerability can be exploited, leading to memory reads beyond allocated buffers. This flaw could cause application crashes or the unintentional disclosure of sensitive information.
Users can upgrade to PHP versions 7.4.33, 8.0.25, or 8.1.12 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugs.php.net/bug.php?id=81739 | CVE | ExploitIssue TrackingPatchVendor Advisory |
| https://bugs.php.net/bug.php?id=81739 | [email protected] | ExploitIssue TrackingPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-131 | Incorrect Calculation of Buffer Size | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | >= 7.4.0, < 7.4.33 >= 8.0.0, < 8.0.25 >= 8.1.0, < 8.1.12 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 2, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Dec 23, 2022 | Reanalysis | [email protected] |
| Nov 28, 2022 | Reanalysis | [email protected] |
| Nov 16, 2022 | Initial Analysis | [email protected] |