CVEvulnerability

CVE-2022-31630

7.1 HIGH Published 2022-11-14 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-11-14
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Weaknesses
CWE-125, CWE-131, CWE-190

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. 

Affected configurations

• php php (>= 7.4.0 < 7.4.33) • php php (>= 8.0.0 < 8.0.25) • php php (>= 8.1.0 < 8.1.12)

Related

Weakness · CWE (3)

  • CWE-125 Out-of-bounds Read weakness
  • CWE-131 Incorrect Calculation of Buffer Size weakness
  • CWE-190 Integer Overflow or Wraparound weakness

References