p PatchFirst

CVE-2022-31630

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 6.5 · Medium · EPSS 1.3% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • php

    Versions
    • ≥ 7.4.x, < 7.4.33: Affected (custom)
    • ≥ 8.0.x, < 8.0.25: Affected (custom)
    • ≥ 8.1.x, < 8.1.12: Affected (custom)

    Update to 7.4.33; Update to 8.0.25; Update to 8.1.12

  • php7.4 Debian:11

    Versions
    • 7.4.21-1+deb11u1
    • 7.4.25-1+deb11u1
    • 7.4.26-1
    • 7.4.28-1+deb11u1
    • 7.4.30-1+deb11u1
    Affected ranges
    • ECOSYSTEM: < 7.4.33-1+deb11u1

    Update to 7.4.33-1+deb11u1

  • php7.4 Ubuntu:20.04:LTS

    Versions
    • 7.4.3-4build1
    • 7.4.3-4build2
    • 7.4.3-4ubuntu1
    • 7.4.3-4ubuntu1.1
    • 7.4.3-4ubuntu2.2
    • 7.4.3-4ubuntu2.4
    • 7.4.3-4ubuntu2.5
    • 7.4.3-4ubuntu2.6
    • 7.4.3-4ubuntu2.7
    • 7.4.3-4ubuntu2.8
    • 7.4.3-4ubuntu2.9
    • 7.4.3-4ubuntu2.10
    • 7.4.3-4ubuntu2.11
    • 7.4.3-4ubuntu2.12
    • 7.4.3-4ubuntu2.13
    Affected ranges
    • ECOSYSTEM: < 7.4.3-4ubuntu2.15

    Update to 7.4.3-4ubuntu2.15

  • php8.1 Ubuntu:22.04:LTS

    Versions
    • 8.1.0~rc4-1ubuntu2
    • 8.1.0-1
    • 8.1.2-1ubuntu1
    • 8.1.2-1ubuntu2
    • 8.1.2-1ubuntu2.1
    • 8.1.2-1ubuntu2.2
    • 8.1.2-1ubuntu2.3
    • 8.1.2-1ubuntu2.4
    • 8.1.2-1ubuntu2.5
    • 8.1.2-1ubuntu2.6
    Affected ranges
    • ECOSYSTEM: < 8.1.2-1ubuntu2.8

    Update to 8.1.2-1ubuntu2.8

Original sources

Check your server →