Out-of-bounds Read in PHP

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.

EPSS exploit prediction

EPSS: 0.023 (82.5th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 82.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-31630: held from 0.022 to 0.023.

EPSS over last 30 days · oldest: 0.022 · newest: 0.023 · change: +0.001

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-31630?
CVE-2022-31630 is a medium-severity vulnerability in PHP, classified under Incorrect Calculation of Buffer Size. CVSS score: 6.5/10. Published 2022-11-14.
How severe is CVE-2022-31630?
Medium severity. CVSS v3 base score is 6.5 out of 10.
Is CVE-2022-31630 known to be exploited?
6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.