CVE-2022-31630CWE-131CWE-190

OOB read due to insufficient input validation in imageloadfont()

Medium · published November 14, 2022

CVSS v3.1
6.5
EPSS
1%
Percentile
70.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.01317 · 70.6th percentile
Weaknesses
CWE-131 · Incorrect Calculation of Buffer Size; CWE-190 · Integer Overflow or Wraparound
Published
2022-11-14T06:53Z
EPSS history
Timeline
  • 14 NOV 06:53Z
    OOB read due to insufficient input validation in imageloadfont()
    cvelistv5