VDB

CVE-2022-31630

CVE-2022-31630 PUBLISHED CVSS 6.5 MEDIUM

OOB read due to insufficient input validation in imageloadfont()

Reported by php · Published November 14, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.1Amazon Linux8.1.14-1.amzn2023.0.2
php81Alpine8.1.12-r0
php8.1-pdoAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-cliAmazon Linux8.1.14-1.amzn2023.0.2
php8Alpine8.0.25-r0
php8.1-dbaAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-tidyAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-gdAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-intlAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-ffiAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-pgsqlAmazon Linux8.1.14-1.amzn2023.0.2
php8.1-odbcAmazon Linux8.1.14-1.amzn2023.0.2

25 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Affected products

VendorProductVersions
PHP GroupPHP7.4.x, 8.0.x, 8.1.x
amazon:2023php8.10
alpinephp810
amazon:2023php8.1-pdo0
amazon:2023php8.1-cli0
alpinephp80
amazon:2023php8.1-dba0
amazon:2023php8.1-tidy0
amazon:2023php8.1-gd0
amazon:2023php8.1-intl0
amazon:2023php8.1-ffi0
amazon:2023php8.1-pgsql0
amazon:2023php8.1-odbc0
alpinephp820
amazon:2023php8.1-xml0
amazon:2023php8.1-common0
amazon:2023php8.1-dbg0
amazon:2023php8.1-embedded0
amazon:2023php8.1-fpm0
amazon:2023php8.1-ldap0

…and 11 more

Timeline

  • Oct 31, 2022 CVE Published
  • Nov 14, 2022 EPSS Score (30 in total, the first dated here)
  • Jun 29, 2023 CVE Updated
  • Jun 2, 2026 Security Advisory (6 in total, the first dated here)
  • Jun 24, 2026 Coalition ESS Score
  • Nov 4, 2026 Distribution Patch (4 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-31630
vulnetix vdb fixes CVE-2022-31630

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-31630/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›