CVE-2022-31630

OOB read due to insufficient input validation in imageloadfont()

Published Nov 14, 2022 CVSS 3.1 · 6.5 Medium EPSS 1.5% KEV · Not listed
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. 

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5277-1 php7.4 security update
EUVD EUVD EUVD-2022-53082 In PHP versions prior to 7.4.33, 8.0.25 and 8.2.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.
Ubuntu USN Ubuntu USN USN-5717-1 PHP vulnerabilities
History

No history.

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-190

    Integer Overflow or Wraparound

  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Aug 3, 2024, 7:26 AM
Reserved
May 25, 2022, 9:03 PM
Status
Modified
Published
Nov 14, 2022, 7:15 AM
Modified
Jun 17, 2026, 4:45 AM
Severity
Moderate
Public date
Oct 27, 2022, 12:00 AM