CVE-2022-31630 - CVE House
Back to Database
Status published Medium CVE-2022-31630

OOB read due to insufficient input validation in imageloadfont()

Vulnerability 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. 

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-31630

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • cmb@php.net
  • cmb@php.net

Affected Vendor

Affected Software

PHP
Vulnerable Versions:
7.4.x, 8.0.x, 8.1.x

Timeline

Official Publish: November 14th, 2022
Last Modified: August 3rd, 2024
Added to House: July 21st, 2026

CVSS Vectors

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

Weaknesses (CWE)