OESA-2022-1721 (CVE-2022-31626)

Vulnerability from osv_openeuler – Published: 2022-06-24 11:04 – Updated: 2026-08-06 11:04 – Source website
VLAI
Summary
php security update
Details

PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.

Security Fix(es):

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 pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.(CVE-2022-31626)

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.(CVE-2022-31625)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "php-gd-7.2.10-20.oe1.aarch64.rpm",
          "php-debugsource-7.2.10-20.oe1.aarch64.rpm",
          "php-json-7.2.10-20.oe1.aarch64.rpm",
          "php-common-7.2.10-20.oe1.aarch64.rpm",
          "php-ldap-7.2.10-20.oe1.aarch64.rpm",
          "php-recode-7.2.10-20.oe1.aarch64.rpm",
          "php-process-7.2.10-20.oe1.aarch64.rpm",
          "php-opcache-7.2.10-20.oe1.aarch64.rpm",
          "php-help-7.2.10-20.oe1.aarch64.rpm",
          "php-cli-7.2.10-20.oe1.aarch64.rpm",
          "php-xml-7.2.10-20.oe1.aarch64.rpm",
          "php-pgsql-7.2.10-20.oe1.aarch64.rpm",
          "php-soap-7.2.10-20.oe1.aarch64.rpm",
          "php-snmp-7.2.10-20.oe1.aarch64.rpm",
          "php-fpm-7.2.10-20.oe1.aarch64.rpm",
          "php-7.2.10-20.oe1.aarch64.rpm",
          "php-odbc-7.2.10-20.oe1.aarch64.rpm",
          "php-enchant-7.2.10-20.oe1.aarch64.rpm",
          "php-tidy-7.2.10-20.oe1.aarch64.rpm",
          "php-pdo-7.2.10-20.oe1.aarch64.rpm",
          "php-bcmath-7.2.10-20.oe1.aarch64.rpm",
          "php-xmlrpc-7.2.10-20.oe1.aarch64.rpm",
          "php-mbstring-7.2.10-20.oe1.aarch64.rpm",
          "php-dbg-7.2.10-20.oe1.aarch64.rpm",
          "php-intl-7.2.10-20.oe1.aarch64.rpm",
          "php-dba-7.2.10-20.oe1.aarch64.rpm",
          "php-debuginfo-7.2.10-20.oe1.aarch64.rpm",
          "php-embedded-7.2.10-20.oe1.aarch64.rpm",
          "php-gmp-7.2.10-20.oe1.aarch64.rpm",
          "php-mysqlnd-7.2.10-20.oe1.aarch64.rpm",
          "php-devel-7.2.10-20.oe1.aarch64.rpm"
        ],
        "src": [
          "php-7.2.10-20.oe1.src.rpm"
        ],
        "x86_64": [
          "php-mbstring-7.2.10-20.oe1.x86_64.rpm",
          "php-devel-7.2.10-20.oe1.x86_64.rpm",
          "php-json-7.2.10-20.oe1.x86_64.rpm",
          "php-ldap-7.2.10-20.oe1.x86_64.rpm",
          "php-odbc-7.2.10-20.oe1.x86_64.rpm",
          "php-debugsource-7.2.10-20.oe1.x86_64.rpm",
          "php-opcache-7.2.10-20.oe1.x86_64.rpm",
          "php-help-7.2.10-20.oe1.x86_64.rpm",
          "php-xmlrpc-7.2.10-20.oe1.x86_64.rpm",
          "php-pgsql-7.2.10-20.oe1.x86_64.rpm",
          "php-gmp-7.2.10-20.oe1.x86_64.rpm",
          "php-soap-7.2.10-20.oe1.x86_64.rpm",
          "php-enchant-7.2.10-20.oe1.x86_64.rpm",
          "php-fpm-7.2.10-20.oe1.x86_64.rpm",
          "php-debuginfo-7.2.10-20.oe1.x86_64.rpm",
          "php-pdo-7.2.10-20.oe1.x86_64.rpm",
          "php-xml-7.2.10-20.oe1.x86_64.rpm",
          "php-7.2.10-20.oe1.x86_64.rpm",
          "php-bcmath-7.2.10-20.oe1.x86_64.rpm",
          "php-intl-7.2.10-20.oe1.x86_64.rpm",
          "php-embedded-7.2.10-20.oe1.x86_64.rpm",
          "php-mysqlnd-7.2.10-20.oe1.x86_64.rpm",
          "php-common-7.2.10-20.oe1.x86_64.rpm",
          "php-cli-7.2.10-20.oe1.x86_64.rpm",
          "php-gd-7.2.10-20.oe1.x86_64.rpm",
          "php-tidy-7.2.10-20.oe1.x86_64.rpm",
          "php-dba-7.2.10-20.oe1.x86_64.rpm",
          "php-snmp-7.2.10-20.oe1.x86_64.rpm",
          "php-recode-7.2.10-20.oe1.x86_64.rpm",
          "php-dbg-7.2.10-20.oe1.x86_64.rpm",
          "php-process-7.2.10-20.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "php",
        "purl": "pkg:rpm/openEuler/php\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.2.10-20.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "php-embedded-8.0.0-8.oe1.aarch64.rpm",
          "php-bcmath-8.0.0-8.oe1.aarch64.rpm",
          "php-8.0.0-8.oe1.aarch64.rpm",
          "php-debuginfo-8.0.0-8.oe1.aarch64.rpm",
          "php-enchant-8.0.0-8.oe1.aarch64.rpm",
          "php-fpm-8.0.0-8.oe1.aarch64.rpm",
          "php-cli-8.0.0-8.oe1.aarch64.rpm",
          "php-ffi-8.0.0-8.oe1.aarch64.rpm",
          "php-pdo-8.0.0-8.oe1.aarch64.rpm",
          "php-dbg-8.0.0-8.oe1.aarch64.rpm",
          "php-help-8.0.0-8.oe1.aarch64.rpm",
          "php-intl-8.0.0-8.oe1.aarch64.rpm",
          "php-process-8.0.0-8.oe1.aarch64.rpm",
          "php-mbstring-8.0.0-8.oe1.aarch64.rpm",
          "php-odbc-8.0.0-8.oe1.aarch64.rpm",
          "php-soap-8.0.0-8.oe1.aarch64.rpm",
          "php-tidy-8.0.0-8.oe1.aarch64.rpm",
          "php-opcache-8.0.0-8.oe1.aarch64.rpm",
          "php-dba-8.0.0-8.oe1.aarch64.rpm",
          "php-gd-8.0.0-8.oe1.aarch64.rpm",
          "php-ldap-8.0.0-8.oe1.aarch64.rpm",
          "php-common-8.0.0-8.oe1.aarch64.rpm",
          "php-gmp-8.0.0-8.oe1.aarch64.rpm",
          "php-snmp-8.0.0-8.oe1.aarch64.rpm",
          "php-debugsource-8.0.0-8.oe1.aarch64.rpm",
          "php-mysqlnd-8.0.0-8.oe1.aarch64.rpm",
          "php-devel-8.0.0-8.oe1.aarch64.rpm",
          "php-pgsql-8.0.0-8.oe1.aarch64.rpm",
          "php-xml-8.0.0-8.oe1.aarch64.rpm"
        ],
        "src": [
          "php-8.0.0-8.oe1.src.rpm"
        ],
        "x86_64": [
          "php-fpm-8.0.0-8.oe1.x86_64.rpm",
          "php-dba-8.0.0-8.oe1.x86_64.rpm",
          "php-odbc-8.0.0-8.oe1.x86_64.rpm",
          "php-soap-8.0.0-8.oe1.x86_64.rpm",
          "php-common-8.0.0-8.oe1.x86_64.rpm",
          "php-8.0.0-8.oe1.x86_64.rpm",
          "php-debuginfo-8.0.0-8.oe1.x86_64.rpm",
          "php-pgsql-8.0.0-8.oe1.x86_64.rpm",
          "php-mbstring-8.0.0-8.oe1.x86_64.rpm",
          "php-tidy-8.0.0-8.oe1.x86_64.rpm",
          "php-xml-8.0.0-8.oe1.x86_64.rpm",
          "php-pdo-8.0.0-8.oe1.x86_64.rpm",
          "php-cli-8.0.0-8.oe1.x86_64.rpm",
          "php-enchant-8.0.0-8.oe1.x86_64.rpm",
          "php-help-8.0.0-8.oe1.x86_64.rpm",
          "php-embedded-8.0.0-8.oe1.x86_64.rpm",
          "php-ldap-8.0.0-8.oe1.x86_64.rpm",
          "php-opcache-8.0.0-8.oe1.x86_64.rpm",
          "php-gmp-8.0.0-8.oe1.x86_64.rpm",
          "php-ffi-8.0.0-8.oe1.x86_64.rpm",
          "php-debugsource-8.0.0-8.oe1.x86_64.rpm",
          "php-devel-8.0.0-8.oe1.x86_64.rpm",
          "php-intl-8.0.0-8.oe1.x86_64.rpm",
          "php-dbg-8.0.0-8.oe1.x86_64.rpm",
          "php-bcmath-8.0.0-8.oe1.x86_64.rpm",
          "php-gd-8.0.0-8.oe1.x86_64.rpm",
          "php-mysqlnd-8.0.0-8.oe1.x86_64.rpm",
          "php-snmp-8.0.0-8.oe1.x86_64.rpm",
          "php-process-8.0.0-8.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP3",
        "name": "php",
        "purl": "pkg:rpm/openEuler/php\u0026distro=openEuler-20.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.0.0-8.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "php-soap-8.0.0-10.oe2203.aarch64.rpm",
          "php-pdo-8.0.0-10.oe2203.aarch64.rpm",
          "php-dbg-8.0.0-10.oe2203.aarch64.rpm",
          "php-intl-8.0.0-10.oe2203.aarch64.rpm",
          "php-bcmath-8.0.0-10.oe2203.aarch64.rpm",
          "php-devel-8.0.0-10.oe2203.aarch64.rpm",
          "php-common-8.0.0-10.oe2203.aarch64.rpm",
          "php-enchant-8.0.0-10.oe2203.aarch64.rpm",
          "php-dba-8.0.0-10.oe2203.aarch64.rpm",
          "php-8.0.0-10.oe2203.aarch64.rpm",
          "php-debuginfo-8.0.0-10.oe2203.aarch64.rpm",
          "php-gmp-8.0.0-10.oe2203.aarch64.rpm",
          "php-process-8.0.0-10.oe2203.aarch64.rpm",
          "php-embedded-8.0.0-10.oe2203.aarch64.rpm",
          "php-opcache-8.0.0-10.oe2203.aarch64.rpm",
          "php-mysqlnd-8.0.0-10.oe2203.aarch64.rpm",
          "php-mbstring-8.0.0-10.oe2203.aarch64.rpm",
          "php-help-8.0.0-10.oe2203.aarch64.rpm",
          "php-xml-8.0.0-10.oe2203.aarch64.rpm",
          "php-cli-8.0.0-10.oe2203.aarch64.rpm",
          "php-tidy-8.0.0-10.oe2203.aarch64.rpm",
          "php-pgsql-8.0.0-10.oe2203.aarch64.rpm",
          "php-fpm-8.0.0-10.oe2203.aarch64.rpm",
          "php-ffi-8.0.0-10.oe2203.aarch64.rpm",
          "php-gd-8.0.0-10.oe2203.aarch64.rpm",
          "php-snmp-8.0.0-10.oe2203.aarch64.rpm",
          "php-debugsource-8.0.0-10.oe2203.aarch64.rpm",
          "php-odbc-8.0.0-10.oe2203.aarch64.rpm",
          "php-ldap-8.0.0-10.oe2203.aarch64.rpm"
        ],
        "src": [
          "php-8.0.0-10.oe2203.src.rpm"
        ],
        "x86_64": [
          "php-dbg-8.0.0-10.oe2203.x86_64.rpm",
          "php-debuginfo-8.0.0-10.oe2203.x86_64.rpm",
          "php-snmp-8.0.0-10.oe2203.x86_64.rpm",
          "php-gd-8.0.0-10.oe2203.x86_64.rpm",
          "php-8.0.0-10.oe2203.x86_64.rpm",
          "php-fpm-8.0.0-10.oe2203.x86_64.rpm",
          "php-intl-8.0.0-10.oe2203.x86_64.rpm",
          "php-ldap-8.0.0-10.oe2203.x86_64.rpm",
          "php-xml-8.0.0-10.oe2203.x86_64.rpm",
          "php-ffi-8.0.0-10.oe2203.x86_64.rpm",
          "php-odbc-8.0.0-10.oe2203.x86_64.rpm",
          "php-dba-8.0.0-10.oe2203.x86_64.rpm",
          "php-debugsource-8.0.0-10.oe2203.x86_64.rpm",
          "php-mysqlnd-8.0.0-10.oe2203.x86_64.rpm",
          "php-tidy-8.0.0-10.oe2203.x86_64.rpm",
          "php-mbstring-8.0.0-10.oe2203.x86_64.rpm",
          "php-process-8.0.0-10.oe2203.x86_64.rpm",
          "php-common-8.0.0-10.oe2203.x86_64.rpm",
          "php-help-8.0.0-10.oe2203.x86_64.rpm",
          "php-soap-8.0.0-10.oe2203.x86_64.rpm",
          "php-embedded-8.0.0-10.oe2203.x86_64.rpm",
          "php-cli-8.0.0-10.oe2203.x86_64.rpm",
          "php-gmp-8.0.0-10.oe2203.x86_64.rpm",
          "php-pdo-8.0.0-10.oe2203.x86_64.rpm",
          "php-bcmath-8.0.0-10.oe2203.x86_64.rpm",
          "php-enchant-8.0.0-10.oe2203.x86_64.rpm",
          "php-opcache-8.0.0-10.oe2203.x86_64.rpm",
          "php-pgsql-8.0.0-10.oe2203.x86_64.rpm",
          "php-devel-8.0.0-10.oe2203.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS",
        "name": "php",
        "purl": "pkg:rpm/openEuler/php\u0026distro=openEuler-22.03-LTS"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.0.0-10.oe2203"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.\r\n\r\nSecurity Fix(es):\r\n\r\nIn 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 pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.(CVE-2022-31626)\r\n\r\nIn 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.(CVE-2022-31625)",
  "id": "OESA-2022-1721",
  "modified": "2026-08-06T11:04:59Z",
  "published": "2022-06-24T11:04:59Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1721"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31626"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31625"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "php security update",
  "upstream": [
    "CVE-2022-31626",
    "CVE-2022-31625"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…