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.
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
References
More from PHP Group
View All →Affected Vendor
PHP Group
View all reports →