CVE-2022-31630

HIGH7.1EPSS 0.05%

OOB read due to insufficient input validation in imageloadfont()

Published: 11/14/2022Modified: 4/28/2026
Also known as:DEBIAN-CVE-2022-31630

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 packages (4)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1HIGH7.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

References (3)