Skip to content
6.5 Medium

CVE-2022-31630 In PHP versions prior to 7.4.33, 8.0.25 and 8.1.12, when using imageloadfont() function in gd extension, it is…

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 and versions

Product Affected versions Fixed in
PHP 8.1 8.1.x → < 8.1.12 8.1.12
PHP 8.0 8.0.x → < 8.0.25 8.0.25
PHP 7.4 7.4.x → < 7.4.33 7.4.33

References

Timeline

  1. Published
  2. Last modified
The 103 CVEs of PHP →
Track this CVE