7.1

CVE-2022-31630: OOB read due to insufficient input validation in imageloadfont()

Modified
AliasesUBUNTU-CVE-2022-31630DEBIAN-CVE-2022-31630openSUSE-SU-2024:12467-1
Published 14-11-2022Last modified 03-08-2024

Vulnerability summary

CVE-2022-31630 is a high (CVSS 7.1) Incorrect Calculation of Buffer Size vulnerability in php group php. EPSS estimates a 1.32% chance of exploitation in the next 30 days, higher than 70.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v3.1 (NVD)
EPSS score
1.32%
0%100%
Low · -0.97 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 10 · Related 5

Timeline

  1. 14-11-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.32%

Chance of exploitation in the next 30 days

Percentile

71%

Versus all other CVEs

30-day change

Decrease -0.97 pp

From 2.28% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (bugs.php.net)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine4 products
  • php7< 7.4.33-r0
  • php8< 8.0.25-r0
  • php81< 8.1.12-r0
  • php82< 8.2.0_rc5-r0
Ubuntu2 products
  • php7.4< 7.4.3-4ubuntu2.15
  • php8.1< 8.1.2-1ubuntu2.8
Debian1 product
  • php7.4< 7.4.33-1+deb11u1
Opensuse1 product
  • php8&distro=openSUSE Tumbleweed< 8.1.12-1.1
Php1 product
  • php≥ 7.4.0, < 7.4.33 | ≥ 8.0.0, < 8.0.25 | ≥ 8.1.0, < 8.1.12
Php group1 product
  • php≥ 7.4.x, < 7.4.33 | ≥ 8.0.x, < 8.0.25 | ≥ 8.1.x, < 8.1.12

6 vendors · 10 products

References

8 links