ADVISORIES

Vulnerability

CVE-2022-31630

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. 

29 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2023-2023-081

    Amazon Linux 2023 - ALAS2023-2023-081: Important priority package update for php8.1

    Important CVE-2022-31627CVE-2022-31628CVE-2022-31629CVE-2022-31630 Amazon Linux Updated 22 February 2023
  • ALPINE-CVE-2022-31630

    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()…

    CVE-2022-31630 Alpine Updated 20 November 2026
  • ALSA-2023:0848

    Moderate: php:8.0 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 AlmaLinux Updated 5 November 2026
  • ALSA-2023:0965

    Moderate: php security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 AlmaLinux Updated 29 October 2026
  • ALSA-2023:2417

    Moderate: php:8.1 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 AlmaLinux Updated 29 October 2026
  • ALSA-2023:2903

    Moderate: php:7.4 security update

    CVE-2017-8923CVE-2022-31628CVE-2022-31629CVE-2022-31630 AlmaLinux Updated 5 November 2026
  • CNA-CVE-2022-31630

    OOB read due to insufficient input validation in imageloadfont()

    CVE-2022-31630 PHP Updated 3 August 2024
  • DEBIAN-CVE-2022-31630

    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()…

    CVE-2022-31630 Debian Updated 24 November 2026
  • DSA-5277-1

    php7.4 - security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-37454 Debian Updated 20 November 2026
  • ELSA-2023-0848

    ELSA-2023-0848: php:8.0 security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 22 February 2023
  • ELSA-2023-0965

    ELSA-2023-0965: php security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 28 February 2023
  • ELSA-2023-2417

    ELSA-2023-2417: 8.1 security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 15 May 2023
  • ELSA-2023-2903

    ELSA-2023-2903: php:7.4 security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 24 May 2023
  • OESA-2023-1620

    php security update

    High CVE-2022-31630CVE-2022-31631CVE-2023-0567CVE-2023-0568 openEuler Updated 18 August 2026
  • RHSA-2023:0848

    Red Hat Security Advisory: php:8.0 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Red Hat Updated 23 November 2026
  • RHSA-2023:0965

    Red Hat Security Advisory: php security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Red Hat Updated 23 November 2026
  • RHSA-2023:2417

    Red Hat Security Advisory: php:8.1 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Red Hat Updated 23 November 2026
  • RHSA-2023:2903

    Red Hat Security Advisory: php:7.4 security update

    CVE-2017-8923CVE-2022-31628CVE-2022-31629CVE-2022-31630 Red Hat Updated 23 November 2026
  • RLSA-2023:0848

    Moderate: php:8.0 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Rocky Linux Updated 4 February 2026
  • RLSA-2023:0965

    Moderate: php security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Rocky Linux Updated 5 February 2026
  • RLSA-2023:2417

    Moderate: php:8.1 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Rocky Linux Updated 27 December 2025
  • RLSA-2023:2903

    Moderate: php:7.4 security update

    CVE-2017-8923CVE-2022-31628CVE-2022-31629CVE-2022-31630 Rocky Linux Updated 27 December 2025
  • SUSE-SU-2022:3997-1

    Security update for php7

    CVE-2021-21707CVE-2021-21708CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:4005-1

    Security update for php8

    CVE-2022-31630CVE-2022-37454 SUSEopenSUSE Updated 2 May 2025
  • SUSE-SU-2022:4068-1

    Security update for php74

    CVE-2017-8923CVE-2020-7068CVE-2020-7069CVE-2020-7070 SUSE Updated 4 February 2026
  • SUSE-SU-2022:4069-1

    Security update for php7

    CVE-2017-8923CVE-2020-7068CVE-2020-7069CVE-2020-7070 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2022-31630

    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()…

    CVE-2022-31630 Ubuntu Updated 22 April 2026
  • USN-5717-1

    php7.2, php7.4, php8.1 vulnerabilities

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-37454 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2024:12467-1

    php8-8.1.12-1.1 on GA media

    CVE-2022-31630 openSUSE Updated 4 February 2026

References