ADVISORIES

Vulnerability

CVE-2022-31625

In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.

35 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2023-2375

    Amazon Linux 2 2017.12 - ALAS2-2023-2375: important priority package update for php

    Important CVE-2017-9228CVE-2017-9229CVE-2022-31625CVE-2023-0662 Amazon Linux Updated 4 December 2023
  • ALPINE-CVE-2022-31625

    In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory…

    CVE-2022-31625 Alpine Updated 20 November 2026
  • ALSA-2022:6158

    Moderate: php:7.4 security update

    CVE-2022-31625 AlmaLinux Updated 29 October 2026
  • ALSA-2022:7624

    Moderate: php:8.0 security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 AlmaLinux Updated 5 November 2026
  • ALSA-2022:8197

    Moderate: php security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 AlmaLinux Updated 29 October 2026
  • CNA-CVE-2022-31625

    Freeing unallocated memory in php_pgsql_free_params()

    CVE-2022-31625 PHP Updated 16 September 2024
  • DEBIAN-CVE-2022-31625

    In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory…

    CVE-2022-31625 Debian Updated 24 November 2026
  • DLA-3243-1

    php7.3 - security update

    CVE-2021-21707CVE-2022-31625CVE-2022-31626CVE-2022-31628 Debian Updated 20 November 2026
  • DSA-5179-1

    php7.4 - security update

    CVE-2022-31625CVE-2022-31626 Debian Updated 20 November 2026
  • ELSA-2022-6158

    ELSA-2022-6158: php:7.4 security update (MODERATE)

    Moderate CVE-2022-31625 Oracle Linux Updated 25 August 2022
  • ELSA-2022-7624

    ELSA-2022-7624: php:8.0 security, bug fix, and enhancement update (MODERATE)

    Moderate CVE-2021-21708CVE-2022-31625 Oracle Linux Updated 15 November 2022
  • ELSA-2022-8197

    ELSA-2022-8197: php security, bug fix, and enhancement update (MODERATE)

    Moderate CVE-2021-21708CVE-2022-31625 Oracle Linux Updated 22 November 2022
  • OESA-2022-1721

    php security update

    High CVE-2022-31625CVE-2022-31626 openEuler Updated 18 August 2026
  • RHSA-2022:5491

    Red Hat Security Advisory: rh-php73-php security and bug fix update

    CVE-2021-21703CVE-2021-21707CVE-2022-31625CVE-2022-31626 Red Hat Updated 13 November 2026
  • RHSA-2022:6158

    Red Hat Security Advisory: php:7.4 security update

    CVE-2022-31625 Red Hat Updated 13 November 2026
  • RHSA-2022:7624

    Red Hat Security Advisory: php:8.0 security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 Red Hat Updated 13 November 2026
  • RHSA-2022:8197

    Red Hat Security Advisory: php security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 Red Hat Updated 13 November 2026
  • RLSA-2022:6158

    Moderate: php:7.4 security update

    CVE-2022-31625 Rocky Linux Updated 5 February 2026
  • RLSA-2022:7624

    Moderate: php:8.0 security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 Rocky Linux Updated 4 February 2026
  • RLSA-2022:8197

    Moderate: php security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2022:2161-1

    Security update for php74

    CVE-2022-31625CVE-2022-31626 SUSE Updated 4 February 2026
  • SUSE-SU-2022:2183-1

    Security update for php72

    CVE-2022-31625CVE-2022-31626 SUSE Updated 2 May 2025
  • SUSE-SU-2022:2185-1

    Security update for php7

    CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:2275-1

    Security update for php7

    CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:2292-1

    Security update for php7

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

    Security update for php8

    CVE-2021-21707CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • 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:4067-1

    Security update for php7

    Known exploited CVE-2015-9253CVE-2017-8923CVE-2017-9120CVE-2018-1000222 SUSEopenSUSE Updated 4 February 2026
  • 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-31625

    In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory…

    CVE-2022-31625 Ubuntu Updated 21 October 2026
  • USN-5479-1

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

    CVE-2022-31625CVE-2022-31626 Ubuntu Updated 27 April 2026
  • USN-5479-2

    php7.0 vulnerabilities

    CVE-2022-31625CVE-2022-31626 Ubuntu Updated 25 June 2026
  • USN-5479-3

    php7.2 regression

    CVE-2022-31625 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2024:13267-1

    php8-8.2.10-3.1 on GA media

    CVE-2022-31625CVE-2022-31626CVE-2023-3247 openSUSE Updated 4 February 2026

References