All vulnerabilities

Servers and applications

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

Severity
High 7.1
Published
14 Nov 2022
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
7.4.33, 8.0.25, 8.1.12
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 7.4.0 before 7.4.33
  • From 8.0.0 before 8.0.25
  • From 8.1.0 before 8.1.12

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-31630
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-31630