Skip to content
CVE PROGRAM SOURCE RECORD6.5 Medium

CVE-2022-31630

OOB read due to insufficient input validation in imageloadfont()

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. 

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

PHP Group PHP

Default version status: unaffected

  • 7.4.x to < 7.4.33affected
  • 8.0.x to < 8.0.25affected
  • 8.1.x to < 8.1.12affected

References