CVE-2022-31630

HIGHCVSS 7.1/10EPSS 2.20%

Last modified

CVE-2022-31630 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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. . EPSS estimates a 2.20% chance of exploitation in the next 30 days.

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. 

Metrics

CVSS 3.1
7.1/10

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

EPSS Probability
2.20%

80.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 7.4.0, < 7.4.33
PhpPhp>= 8.0.0, < 8.0.25
PhpPhp>= 8.1.0, < 8.1.12

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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. 
How severe is CVE-2022-31630?
CVE-2022-31630 has a CVSS score of 7.1/10 (HIGH severity). The EPSS model estimates a 2.20% probability of exploitation in the next 30 days.
How do I fix CVE-2022-31630?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-31630?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST