ADVISORIES

Alpine Security Database

ALPINE-CVE-2022-31630

Details

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

EcosystemPackageAffected versions
Alpine:v3.14php7
All versions before 7.4.33-r0 (fixed in 7.4.33-r0)
Alpine:v3.15php7
All versions before 7.4.33-r0 (fixed in 7.4.33-r0)
Alpine:v3.15php8
All versions before 8.0.25-r0 (fixed in 8.0.25-r0)
Alpine:v3.16php8
All versions before 8.0.25-r0 (fixed in 8.0.25-r0)
Alpine:v3.16php81
All versions before 8.1.12-r0 (fixed in 8.1.12-r0)
Alpine:v3.17php81
All versions before 8.1.12-r0 (fixed in 8.1.12-r0)
Alpine:v3.18php81
All versions before 8.1.12-r0 (fixed in 8.1.12-r0)
Alpine:v3.19php81
All versions before 8.1.12-r0 (fixed in 8.1.12-r0)
Alpine:v3.18php82
All versions before 8.2.0_rc5-r0 (fixed in 8.2.0_rc5-r0)
Alpine:v3.19php82
All versions before 8.2.0_rc5-r0 (fixed in 8.2.0_rc5-r0)
Alpine:v3.20php82
All versions before 8.2.0_rc5-r0 (fixed in 8.2.0_rc5-r0)
Alpine:v3.21php82
All versions before 8.2.0_rc5-r0 (fixed in 8.2.0_rc5-r0)
Alpine:v3.22php82
All versions before 8.2.0_rc5-r0 (fixed in 8.2.0_rc5-r0)

References