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.015, 75.0th percentile (scored ); down from 0.023 30 days earlier. About EPSS.

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

EPSS over last 30 days · oldest: 0.023 · newest: 0.015 · change: -0.008

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

2 public repositories with exploit or proof-of-concept code for this CVE:

Also mentioned in 4 other repositories (ARPSyndicate/cvemon, fkie-cad/nvd-json-data-feeds, Lud-ly/iron4software, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References