Skip to main content
← All vulnerabilities
CVE-2022-31630

OOB read due to insufficient input validation in imageloadfont()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.4.33, 8.0.25, 8.1.12
2 proofs of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • PHP Group PHP

    From 7.4.x · fixed in 7.4.33; From 8.0.x · fixed in 8.0.25; From 8.1.x · fixed in 8.1.12

References 3

bugs.php.net

GitHub · sepkascurty-cpu/CVE-2022-31630---Proof-of-Concept-Exploit-untuk-PHP-7.4.33

GitHub · sepkascurty-cpu/php-exploit_cve-2022-31630