Skip to content

In PHP versions prior to 7.4.33, 8.0.25 and 8.2.12, when...

High severity Unreviewed Published Nov 14, 2022 to the GitHub Advisory Database • Updated Apr 2, 2024

Package

No package listedSuggest a package

Affected versions

Unknown

Patched versions

Unknown

Description

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.

References

Published by the National Vulnerability Database Nov 14, 2022
Published to the GitHub Advisory Database Nov 14, 2022
Last updated Apr 2, 2024

Severity

High
7.1
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

CVE ID

CVE-2022-31630

GHSA ID

GHSA-jw98-jrc9-mrx5

Source code

No known source code

Dependabot alerts are not supported on this advisory because it does not have a package from a supported ecosystem with an affected and fixed version.

Learn more about GitHub language support

Checking history
See something to contribute? Suggest improvements for this vulnerability.