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 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:
- sepkascurty-cpu/php-exploit_cve-2022-31630 (1 star, last pushed 2026-03-14)
- sepkascurty-cpu/CVE-2022-31630---Proof-of-Concept-Exploit-untuk-PHP-7.4.33 (1 star, last pushed 2026-03-14)
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
- bugs.php.net/bug.php (Exploit, Patch, Issue Tracking, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.